Re: [O] Google Summer of Code 2012 Student Application
On 5.4.2012, at 13:49, Andrew Young wrote: Hello Bastien, On Thu, Apr 5, 2012 at 2:48 AM, Bastien b...@gnu.org wrote: Hi Andrew, Andrew Young younga...@gmail.com writes: My name is Andrew Young, and I would like to participate in an Org-Mode project for GSoC 2012. My application for the project 'Git merge tool for Org files' can be found herehttp://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#. Great! I would appreciate as much feedback and criticism as possible. First of all, make sure someone can co-mentor this project. I'm willing to mentor this (as the current maintainer it makes sense, especially for people judging the project from the outside), but having Carsten as a co-mentor would be a great win. Make sure Carsten (cc'ed) is okay. I will send him a personal (private) request. Carsten, being a co-mentor involves mainly three things: 1. registering on google-melange.com I have registered as a mentor, username cdominik. I have not yet found how to do: 2. from there, requesting to be a mentor for the GNU project 3. during the project, help the student and have IRC/phone meetings, at least when I'm not here (I expect to be off for 2-3 weeks this summer, I will tell when ASAP) Yes. I am a phone/skype guy, not an irc guy. - Carsten I used the generic GNU Project student application template, which can be found here http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu. 1. First things thing: you should rewrite the summary section to remove the I believe and other informal writing from Carsten's prose. Make it yours, make it a real summary. I found the GNU Application template confusing, and was not sure if the summary was supposed to be written by me, or copied from the ideas page (to clarify what project idea I was referring to). I followed your advice and wrote my own project summary, since that seems like the better idea. 2. Refer to org-element.el when you mention the Data representation. org-element.el will be key in representing data and diffs between data (at any level.) 3. Add a documentation section, explaining what doc you will write and how you you will write/host it (worg is fine.) Thanks for the pointers. I've incorporated your advice into the proposal. I have some specific questions: 1. There is no implementation details or decisions in my application, just a basic plan of what needs to be done. Should I start researching implementation details for my application? You can look at org-element.el for the data representation. 2. I would like to post my application on the community site Worg. If this is appropriate, what is the proper channel to request GIT access? Send me your public key. If this mailing list is not the appropriate place to discuss my application, please let me know and then feel free to email me directly. I will also be spending as much time as possible on freenode #org-mode as Pwyl. This mailing list *is* the appropriate place, no worry. Thanks again for your proposal, this would be a great plus for Org! Best, -- Bastien Thanks again for your suggestions and pointers. My public key is attached. Regards, Andrew younga...@gmail.com.pub
Re: [O] layout org-babel menu WAS: About org-babel menu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/12 03:51, Torsten Wagner wrote: Hi, Hi, for me the biggest trouble with babel is to remember the possible keywords in the header for different languages. True - I use mainly R and basic sh, but the header arguments cause me agauin and again to look in the help (actually not the worst thing to do...). There were a lot of ongoing syntax change which did not make it easier for me to remember all this. Thus a menu which is organised by languages offering all possible settings for each language would be very helpful. | Python || | export - code - result - both - none || | tangle - no - yes- filename | | | result - value - output | | | ... | ... A menu entry for each language would be nice - also show which ones are available. Not sure how effectual this would be in a main menu. It would be definitely awesome in a context menu Context menu in emacs? I guess something more I did not know? I assume it is not the right-mouse-click kind? That would be (copied from worg) [*] indicates cursor position #+NAME: factorial #+BEGIN_SRC haskell [*] :results silent :exports code :var n=0 a context menu would appear presenting all possible header arguments for haskell #+NAME: factorial #+BEGIN_SRC haskell :results [*] :exports code :var n=0 a context menu presenting all possible values for the header argument :results in haskell When you mentioned header arguments, I thought about tab-completion based on the language. This would obviously only (?) work for header arguments in the #+begin_src line, bt would be very useful: when I press tab (or another key like tag completion) the possible header arguments are auto-expanded. Next step: auto complete for the options for the specific header argument. But a menue would also be nice. I guess that together with the possibility to call this menu by keyboard strokes or alternatively show the same infos in the minibuffer would be a great win for babel and it would make many questions here on the list unnecessary. Ups - similar to what I described above... Furthermore, any change or extension in the syntax for a certain language would be directly reflected to the end-user. E.g., If I suddenly see the menu entry :exports 3dprint, I would be curious and check it out on worg and the manual ;) True - one huge plus for org babel are the header arguments - and it is easy to stay with the ones one knows and ignore / forget new ones although they might be very useful. I just r-organised the menu a bit, separated into general header arguments and language specific header arguments: Org | + Babel | + edit | | | + open surce buffer (that C-c ') | + insert source block skeleton | + ... | + ... | + header arguments | | | + general | | + export ... | | + ... | | | | | + Language specific | | + R | | |+ file ... | | |+ ... | | |+ ... | | + Python | | |+ ... | | |+ ... | | | | | + ... | | | + Show | |+ Header arguments for code block | |+ Header arguments for all code block in buffer | |+ ... | + tangle | | | + tangle buffer | + inverse tangle | + ... | + ... | + evaluate | | | + evaluate code block | + evaluate subtree | + ... | + ... | + ... | + ... | + Library of BABEL | | | + ... | + help | | | + Link to info help on header arguments | + Link to info help on how to enable languages | + URL to language specific help on worg | + ... | + ... Eric: you suggestion of Language is really good. Could the language be a sub-menu of the help (or should it rather be called Documentation?) as it is information only? I like the library of babel submenu - especially as I never used the library of babel and I assume I am missing a lot... Eric: Displaying information about code block: very good idea - and I think a hierarchical display would be really nice, so that on can see file wide, subtree properties and block header arguments, maybe also for the whole file in a tree structure? I included it above. Any further comments? Cheers, Rainer Totti On 5 April 2012 21:44, Eric Schulte eric.schu...@gmx.com wrote: Rainer M Krug r.m.k...@gmail.com writes: On 28/03/12 01:07, Bastien wrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: So I would see it as a useful way of promoting babel (and therefore org-mode) and also as a nice reminder of less frequently (but nevertheless usefull) functionality. Agreed. Is anyone volunteering for listing the items in such a menu for Babel? If so, I'm willing to implement this. OK - let me start this. Org | + Babel | + edit | | | + open surce buffer (that C-c ') | + insert source block skeleton | + ... | + ... | + tangle | | | + tangle buffer | + inverse
Re: [O] layout org-babel menu WAS: About org-babel menu
Hi, for me the biggest trouble with babel is to remember the possible keywords in the header for different languages. I prepared a little table for the header keywords, not language specific and maybe not complete, but at least a systematic summary of headers and values: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-picolisp.html -- cheers, Thorsten
Re: [O] layout org-babel menu WAS: About org-babel menu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/12 08:48, Thorsten wrote: Hi, for me the biggest trouble with babel is to remember the possible keywords in the header for different languages. I prepared a little table for the header keywords, not language specific and maybe not complete, but at least a systematic summary of headers and values: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-picolisp.html Looks nice - good starting point for a page in work about header arguments. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9+lA8ACgkQoYgNqgF2egqGjwCeOGTyEwGxQa9Yl43uNf1+3lyR PRcAoIhdcA53jprpdnvg0N5xM6ykfFWq =FVvq -END PGP SIGNATURE-
Re: [O] Default prewarning time for each deadline
On Fri, Apr 6, 2012 at 2:01 AM, Karl Voit wrote: * Manish wrote: On Thu, Apr 5, 2012 at 2:12 PM, Karl Voit wrote: Hi! Is there a way to define a default pre-warning time string for new DEADLINE (only) timestamps? Have you considered setting org-deadline-warning-days? It sets the default warning period for DEADLINE items. When I set org-deadline-warning-days to 0, I do not get warnings even for DEADLINE strings containing a desired warning definition like -3d :-( My bad. I should have read the docstring again before posting. It clearly states: When 0 or negative, it means use this number (the absolute value of it) even if a deadline has a different individual lead time specified. I tried that but unfortunately with this setting, an entry like «DEADLINE: 2012-04-23 Mon -20d» does not appear on todays agenda at all :-( Is this due to another setting on my side (only)? I don't think there's any other setting that helps with this. -- Manish
Re: [O] layout org-babel menu WAS: About org-babel menu
Hi Thorsten, Thorsten quintf...@googlemail.com writes: I prepared a little table for the header keywords, not language specific and maybe not complete, but at least a systematic summary of headers and values: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-picolisp.html When it's completed and if it's not picolisp specific, maybe you can move this to a more general page about Babel ? Or even on a standalone page? Thanks! -- Bastien
Re: [O] Bug: SCHEDULED: positioning is fragile [7.8.06 (release_7.8.06.181.ga481)]
Hi Dave, Dave Abrahams d...@boostpro.com writes: Given the following: * TODO Some headline SCHEDULED: 2012-04-05 Thu If I add body text between the headline and the SCHEDULED: line, some things work, but others don't. See this footnote in the section 8.3.1 Inserting deadlines or schedules of the manual: (1) The `SCHEDULED' and `DEADLINE' dates are inserted on the line right below the headline. Don't put any text between this line and the headline. HTH, -- Bastien
Re: [O] [PATCH] Add autoload cookie for function org-table-iterate-buffer-tables
Hi Sébastien, Sebastien Vauban wxhgmqzgw...@spammotel.com writes: 2012-04-05 Sebastien Vauban wxhgmqzgw...@spammotel.com * org-table.el (org-table-iterate-buffer-tables): Autoload function. Why do you need this function to be autoloaded? Thanks, -- Bastien
[O] Disqus commenting system tested on Worg
Hi all, I created a disqus area for Worg comments. See what it looks like on this page: http://orgmode.org/worg/org-tutorials/org-spreadsheet-intro.html If you want to add comments on a Worg page, see the code in worg/org-spreadsheet-intro.org I don't think having comments for all Worg pages is a good idea, but perhaps it's nice having those on some tutorials and personal pages. Comments are pre-approved with an akismet anti-spam filter on. I will administer this for now, and see if this is useful. Enjoy! -- Bastien
Re: [O] [PATCH] Add info when reference to remote table is not in the file
Hi Sébastien, thanks for the patch. I wonder if we should trigger an error instead -- why a message? (I don't like using sit-for, it's often worse than getting an error...) About the patch itself, thanks for the effort in adding a ChangeLog, it's close to perfect: just think of starting sentences with a uppercase letter, and of *including* the emacs ChangeLog in the patch. See other commit messages in the git log for reference. Thanks! -- Bastien
Re: [O] buffer-local org-agenda-files embedded agenda-view
Hi Mirko, Mirko Vukovic mirko.vuko...@gmail.com writes: Did you mean `org-agenda-list'? No, I meant `org-agenda-listing' -- which doesn't exist right now, and which purpose would be to store all agendas views interactively displayed in a session. Maybe just science fiction right now but who knows? -- Bastien
Re: [O] Question about org-table
Hi Rodolfo, please send plain-text emails -- especially for questions about org-table, you will increase your audience a lot! Thanks, -- Bastien
Re: [O] [bug] void-variable org-special-blocks-line when exporting to HTML
Hello Vladimir and Bastien, Vladimir Lomov wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: On Org-mode version 7.8.08 (release_7.8.07.217.gcf3b.dirty), I just experienced this when exporting to HTML: I cannot reproduce this. Please provide the minimal setup for reproducing this bug -- thanks! --8---cut here---start-8--- #+TITLE: Worked hours #+AUTHOR:Seb Vauban * Test C-c C-e h Does this work? No... --8---cut here---end---8--- results in the following backtrace: --8---cut here---start-8--- Debugger entered--Lisp error: (void-variable org-special-blocks-line) (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ org-special-blocks-line) (if (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ org-special-blocks-line) (progn (message %s (match-string 1)) (when (equal (match-string 2 org-special-blocks-line) START) (org-close-par-maybe) (insert \ndiv class=\ (match-string 1 org-special-blocks-line) \) (org-open-par)) (when (equal (match-string 2 org-special-blocks-line) END) (org-close-par-maybe) (insert \n/div) (org-open-par)) (throw (quote nextline) nil))) (when (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ org-special-blocks-line) (message %s (match-string 1)) (when (equal (match-string 2 org-special-blocks-line) START) (org-close-par-maybe) (insert \ndiv class=\ (match-string 1 org-special-blocks-line) \) (org-open-par)) (when (equal (match-string 2 org-special-blocks-line) END) (org-close-par-maybe) (insert \n/div) (org-open-par)) (throw (quote nextline) nil)) org-special-blocks-convert-html-special-cookies() run-hooks(org-export-html-after-blockquotes-hook) (catch (quote nextline) (when (and inquote (string-match org-outline-regexp-bol line)) (insert /pre\n) (org-open-par) (setq inquote nil)) (when inquote (insert (org-html-protect line) \n) (throw (quote nextline) nil)) (when (and org-export-with-fixed-width (string-match ^[ ]*:\\(\\([ ]\\|$\\)\\(.*\\)\\) line)) (when (not infixed) (setq infixed t) (org-close-par-maybe) (insert pre class=\example\\n)) (insert (org-html-protect (match-string 3 line)) \n) (when (or (not lines) (not (string-match ^[]*:\\(\\([ ]\\|$\\)\\(.*\\)\\) (car lines (setq infixed nil) (insert /pre\n) (org-open-par)) (throw (quote nextline) nil)) (when (and (get-text-property 0 (quote org-protected) line) (not ( (or (next-single-property-change 0 (quote org-protected) line) 1) (length line (let (par (ind (get-text-property 0 (quote original-indentation) line))) (when (re-search-backward \\(p\\)\\([ .\n]*\\)\\= (- (point) 100) t) (setq par (match-string 1)) (replace-match \\2\n)) (insert line \n) (while (and lines (or (= (length ...) 0) (not ind) (equal ind (get-text-property 0 ... ...))) (or (= (length ...) 0) (get-text-property 0 (quote org-protected) (car lines (insert (pop lines) \n)) (and par (insert p\n))) (throw (quote nextline) nil)) (when (equal ORG-BLOCKQUOTE-START line) (org-close-par-maybe) (insert blockquote\n) (org-open-par) (throw (quote nextline) nil)) (when (equal ORG-BLOCKQUOTE-END line) (org-close-par-maybe) (insert \n/blockquote\n) (org-open-par) (throw (quote nextline) nil)) (when (equal ORG-VERSE-START line) (org-close-par-maybe) (insert \np class=\verse\\n) (setq org-par-open t) (setq inverse t) (throw (quote nextline) nil)) (when (equal ORG-VERSE-END line) (insert /p\n) (setq org-par-open nil) (org-open-par) (setq inverse nil) (throw (quote nextline) nil)) (when (equal ORG-CENTER-START line) (org-close-par-maybe) (insert \ndiv style=\text-align: center\) (org-open-par) (throw (quote nextline) nil)) (when (equal ORG-CENTER-END line) (org-close-par-maybe) (insert \n/div) (org-open-par) (throw (quote nextline) nil)) (run-hooks (quote org-export-html-after-blockquotes-hook)) (when inverse (let ((i (org-get-string-indentation line))) (if ( i 0) (setq line (concat (mapconcat (quote identity) (make-list ... \\nbsp) ) (org-trim line (unless (string-match []*$ line) (setq line (concat line ) (setq start 0) (while (string-match ?\\([^]*\\)?\\((INVISIBLE)\\)?[ ]*\n? line start) (cond ((get-text-property (match-beginning 1) (quote org-protected) line) (setq start (match-end 1))) ((match-end 2) (setq line (replace-match (format @a name=\%s\ id=\%s\@/a (org-solidify-link-text ...) (org-solidify-link-text ...)) t t line))) ((and org-export-with-toc (equal (string-to-char line) 42)) (setq line (replace-match (concat @span class=\target\ (match-string 1 line) @/span ) t t line))) (t (setq line (replace-match (concat @a name=\ (org-solidify-link-text ...) \ class=\target\ (match-string 1 line) @/a ) t t line) (setq line (org-html-handle-time-stamps line)) (or (string-match org-table-hline-regexp line) (string-match ^[ ]*\\([+]-\\||[ ]\\)[-+ |]*[+|][ ]*$ line) (setq line (org-html-expand
Re: [O] [PATCH] Add info when reference to remote table is not in the file
Hi Bastien, Bastien wrote: thanks for the patch. I wonder if we should trigger an error instead -- why a message? Because it's not an error... When a reference (I guess it always must be an ID, then) is not found locally, Org will search for it in external known files. The problem is you see hundreds of messages Finding ID location..., and you don't know which reference Org is trying to find... When you have multiple tables, with multiple references, this is a nightmare to find which was is wrong. Just use `TBLNAME' instead of `tblname' for the referenced table (or the inverse, if you apply the patch you sent me a couple of days ago), and you'll understand that it's good to know what Org is searching for. (I don't like using sit-for, it's often worse than getting an error...) I don't like it that much either, but, here, it's the only way to see the message before being flooded by the Finding ID location... messages. Best regards, Seb -- Sebastien Vauban
Re: [O] [PATCH] Add autoload cookie for function org-table-iterate-buffer-tables
Hi Bastien, Bastien wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: 2012-04-05 Sebastien Vauban wxhgmqzgw...@spammotel.com * org-table.el (org-table-iterate-buffer-tables): Autoload function. Why do you need this function to be autoloaded? To be able to use it in batch mode without having to require explicitly `org-table'. Best regards, Seb -- Sebastien Vauban
Re: [O] ATTR_HTML for a clickable image, howto?
Hi, On 4/5/12 5:02 PM, François Pinard wrote: I understand what you mean by saying it does not make sense with the current mechanics. Yet, from a user perspective, it surely makes sense hoping that Org offers a way for adding attributes to either part of a link, as links are kind of indivisible (so far that I know). On reflection, there might be a case for making the exporter smart enough not to place #+ATTR_HTML attributes such as ALT, WIDTH and HEIGHT (or even ALIGN, though see below) in the A element, where they have no place, but instead pass them through to the clickable image, where they obviously belong. I suggest you fix your css instead. My knowledge of CSS is rudimentary. I'm not aware that CSS (the version widely available, not the incoming one) has enough matching capabilities to spot wrong HTML, remove attributes on some elements and add them on other elements. Is that really possible? Should I dive and study CSS more? Without matching, CSS would not help much, as the correction is needed in three dozen cases at most, and not blindly for all images. No, CSS doesn't move attributes around. But the ALIGN attribute has long been deprecated in favor of CSS. All the CSS needed to right-align all images that are children of a link anchor is: a img {float: right;} (There are other, more complex ways to control horizontal alignment in CSS.) To set this on a per-document basis in Org, use: #+STYLE: stylea img {float: right;}/style If you need more fine-grained control, you could use e.g.: a.rightaligned img {float: right;} where rightaligned is an arbitrary name, you could call the class alignright or right or rt or whatever. Then you could set the rightaligned class on all links you want right-aligned: #+ATTR_HTML: class=rightaligned [[./targetimage.png][./linkimage.png]] Note that it's still the A element that gets the class. In this case, the CSS applies to all IMG child elements of A CLASS=rightaligned elements. For this particular purpose, though, that CSS may be overkill; looks to me like you get the same visual result by just styling A directly. So here's the whole CSS for right-aligning any block element on which you can set the CLASS to rightaligned with ATTR_HTML: .rightaligned {float: right;} I could ponder using XSL or something else to post-process the HTML generated by Org, so circumventing the limitation. This would be adding an unwelcome layer of complexity. I like to perceive Org as a tool which much simplify my life! :-). Any problem you can solve with a single line of simple CSS, you can probably solve with a deprecated tag, several lines of complicated XSL, and a postprocessing hook in Org to issue a shell command to an XSLT processor... But why would you? If you like Org for its simplicity, you will love CSS. Yours, Christian
Re: [O] [BUG] html export and org results block and indentation
Hi Vladimir, Vladimir Lomov lomov...@gmail.com writes: How about that: [see attached file ex.org] I run it with my standard configuration (at end of attached file) and with emacs -Q -eval (setq org-modules '(org-special-blocks)) ex.org Thanks for this info. P.S. I looked into git log but the only recent changes in org-special-blocks.el were variable renaming: 'line' - 'org-special-blocks-line'. That's the problem indeed. I reverted this commit: http://orgmode.org/w/?p=org-mode.git;a=commit;h=9054ba39d085dc2910285a194ed2206b36875289 Please confirm this fixes your problem. Best, -- Bastien
Re: [O] ATTR_HTML for a clickable image, howto?
Hi François, pin...@iro.umontreal.ca (François Pinard) writes: I understand what you mean by saying it does not make sense with the current mechanics. Yet, from a user perspective, it surely makes sense hoping that Org offers a way for adding attributes to either part of a link, as links are kind of indivisible (so far that I know). Agreed. But remember we are in kind of a transition from the current exporter to the new ones, so efforts on fixing problems with the current one are less pressing than trying to move to the new ones. I suggest you fix your css instead. My knowledge of CSS is rudimentary. I'm not aware that CSS (the version widely available, not the incoming one) has enough matching capabilities to spot wrong HTML, remove attributes on some elements and add them on other elements. Is that really possible? #+ATTR_HTML: align=right id=my_css_id_for_this_anchor [[file:2011-06-04-gazou-passeport.png][file:2011-06-04-gazou-passeport-petit.jpg]] Then in your css: a.my_css_id_for_this_anchor img {...} Should I dive and study CSS more? Everyone should, no ? :) Without matching, CSS would not help much, as the correction is needed in three dozen cases at most, and not blindly for all images. See above. HTH, -- Bastien
Re: [O] [bug] void-variable org-special-blocks-line when exporting to HTML
Hi Sébastien, Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In other words, my HTML export is completely broken for any file. It should be fixed now. I hope this was the last problem in this yeahhh-let's-fix-new-Emacs-warning-and-replace-them-with-plain-bugs-instead saga... I'm totally in the blue -- maybe a sign that I need holidays? ;-) A sign that *I* need holidays! :) -- Bastien
Re: [O] [PATCH] Add autoload cookie for function org-table-iterate-buffer-tables
Hi Sébastien, Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Bastien, Bastien wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: 2012-04-05 Sebastien Vauban wxhgmqzgw...@spammotel.com * org-table.el (org-table-iterate-buffer-tables): Autoload function. Why do you need this function to be autoloaded? To be able to use it in batch mode without having to require explicitly `org-table'. The problem is there are quite a lot of commands (interactive functions) that can be used in batch mode. Why adding autoload to this and not to another one? I don't want to open the door for one-by-one requests of this kind... so unless this is a more pressing need for an autoload cookie, I'll let you (require 'org-table) in your script. Does that make sense? -- Bastien
Re: [O] Problem with exporting TAB key
Hi Vladimir, Vladimir Lomov lomov...@gmail.com writes: Just tried, I commented that line in org-exp.el, run Emacs open ORG file export it to HTML and tangle it. HTML document has spaces instead of TAB as well as shell file. Can you try the change proposed by Nick in combination with (setq org-src-preserve-indentation t) an report? -- Bastien
Re: [O] Default prewarning time for each deadline
Hi all myself on Thu, Apr 5, 2012 at 16:34: But another solution is to set org-deadline-warning-days to 0 and then Karl on Thu, Apr 5, 2012 at 22:31: When I set org-deadline-warning-days to 0, I do not get warnings even for DEADLINE strings containing a desired warning definition like -3d :-( Manish on Fri, Apr 6, 2012 at 09:02: My bad. I should have read the docstring again before posting. It clearly states: When 0 or negative, it means use this number (the absolute value of it) even if a deadline has a different individual lead time specified. Since at least Manish and me were surprised by 0 my suggestion is to use the yet unused nil for what 0 does now (never warn, even if deadline has an individual lead time) and 0 for what we expected (use 0 if deadline has no individual lead time). The change would break the customizations that already use 0. In the Org customization survey 0 was not used. http://orgmode.org/worg/org-configs/org-customization-survey.html I know, I know, I should read the manual but in this case already the exemplary variable name itself that documents even the unit of the value gives me expectations for the positive integers and 0. Michael
Re: [O] layout org-babel menu WAS: About org-babel menu
Bastien b...@gnu.org writes: Hi Bastien, Thorsten quintf...@googlemail.com writes: I prepared a little table for the header keywords, not language specific and maybe not complete, but at least a systematic summary of headers and values: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-picolisp.html When it's completed and if it's not picolisp specific, maybe you can move this to a more general page about Babel ? Or even on a standalone page? I extracted the tables from the picolisp page to a standalone page (http://orgmode.org/worg/org-contrib/babel/header-args.html) that may be accessed via the babel index page (item References and Documentation). This might be a starting point for a complete and exhaustive overview of header args and result types in Babel including the language specific ones. So everyone is invited to improve this page. -- cheers, Thorsten
Re: [O] Google Summer of Code 2012 Student Application
Bastien b...@gnu.org writes: Thorsten quintf...@googlemail.com writes: What I really would need to decide upon at the very beginning is the git workflow - not too complicated, but somehow scalable for the future is the project succeeds. Any suggestion besides having a master and a private branch? Start with a git repo somewhere. Maybe prefer gitorious to github, GNU admins tend to be sensible to such nice little attentions. Its all done on github now, I wasn't aware that gitorious is a GNU project, it seemed everybody is on github. But github is terribly slow. I have (free private 2GB) repos at assembla too, and pushing to assembla is really fast, while pushes to github take quite some time even if only a typo was changed. We can also consider hosting a new git project on orgmode.org, if your needs are pretty basics. I think github and worg will suffice for code and docs, maybe with some more private stuff on assembla. Should I already consider a workflow similar to the one used by you for Org-mode? I'd say no: start with only one public master branch (and small local branches when needed, of course), and change this workflow when needed. Ok, I keep it simple then. If there are changes that need to be part of Org at some point, we will create a branch for you, just as we have feature branch right now. at this simple level git seems to be really fun, while following your discussions with regards to org/git emacs/bzr clearly shows that it all can end up in a nightmare of complexity ;) Thanks for the tips -- cheers, Thorsten
[O] var expansion on tangling only once per file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I have a file wide variable defined and tangle several source blockd into one file. BNo the variable is expanded in each block. Would it be possible to have the expansion at the beginning of the file and nod be repeated, as this can cause problems? The following org code #+PROPERTY: tangle test.R #+PROPERTY: var TheVar=99 * Part one #+begin_src R :tabgle: x - 1 #+end_src * Problem #+begin_src R y - list( x = 1, #+end_src * Problem continued #+begin_src R x - 3 ) #+end_src results in an error in R due to the repeated TheVar - 99 in the list definition. Org-mode version 7.8.08 (release_7.8.07.213.ge6fdf) from git this morning If I remember correctly, this sneeked in quite recently. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9+vNoACgkQoYgNqgF2egpnqgCfagLVojt2kU3SouF+GdQ11BJB J7wAn3zqXQR9KuiHLXOKBHimBeZgnGSv =rXHQ -END PGP SIGNATURE-
Re: [O] [bug] void-variable org-special-blocks-line when exporting to HTML
Hi Bastien, Bastien wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In other words, my HTML export is completely broken for any file. It should be fixed now. It is! Thanks a lot. I hope this was the last problem in this yeahhh-let's-fix-new-Emacs-warning-and-replace-them-with-plain-bugs-instead saga... I'm totally in the blue -- maybe a sign that I need holidays? ;-) A sign that *I* need holidays! I'm not out of the blue yet... I still can't understand why: - you were unable to reproduce it? What's the difference between you and me? ;-) I mean why does Org behave differently between us? - nobody else seemed hit by this? I'm surprised by the absence of reactions while HTML export was completely failing for a couple of days. Once again, why only me? - this wasn't trapped by the ERT test suite? There are a lot of HTML exports done in the tests. Why did they succeed? Have you hints on this? Best regards, Seb -- Sebastien Vauban
[O] [bug] org-table-iterate-buffer-tables breaks source code blocks
Hello, When running `org-table-iterate-buffer-tables' over a file containing source code blocks, these can be broken by the recalculate process: *pipe signs are inserted in source code blocks*. Here an ECM: --8---cut here---start-8--- #+TITLE: Export table to PDF #+AUTHOR:Seb Vauban * Tasks ** Do it :LOGBOOK: CLOCK: [2012-04-02 Mon 09:00]--[2012-04-02 Mon 10:52] = 1:52 :END: Here is the code I've done: #+begin_src sh egrep ^[^ #A-Z]+: Somefile \ | sed 's/:[^#]*//' #+end_src * Reporting #+TBLNAME: report #+BEGIN: clocktable :scope file :block 2012-04 Clock summary at [2012-04-06 Fri 12:59], for April 2012. | Headline | Time | | |+--+--| | Total time | 1:52 | | |+--+--| | Tasks | 1:52 | | | Do it | | 1:52 | #+END: * Summary Time worked on Tasks: | Total | 1:51 | #+TBLFM: @1$2=remote(report,@3$2) --8---cut here---end---8--- Steps to reproduce the problem: 1. Save the ECM as `table.org' 2. Run from the command line: emacs --batch -Q --eval (add-to-list 'load-path \~/src/org-mode/lisp\) -l org-install.el --eval (require 'org-table) table.org -f org-update-all-dblocks -f org-table-iterate-buffer-tables --eval '(write-file table-out.org)' where ~/src/org-mode/lisp should be adjusted to reflect where your latest Org files reside. 3. Open the update Org file (called `table-out.org') and you'll discover the bug: The source code block now contains an extra pipe at the end of the line. #+begin_src sh egrep ^[^ #A-Z]+: Somefile \ | sed 's/:[^#]*//' | #+end_src ^ Here Best regards, Seb -- Sebastien Vauban
Re: [O] Google Summer of Code 2012 Student Application
Thorsten quintf...@googlemail.com writes: What I really would need to decide upon at the very beginning is the git workflow - not too complicated, but somehow scalable for the future is the project succeeds. Any suggestion besides having a master and a private branch? Start with a git repo somewhere. Maybe prefer gitorious to github, GNU admins tend to be sensible to such nice little attentions. We can also consider hosting a new git project on orgmode.org, if your needs are pretty basics. Should I already consider a workflow similar to the one used by you for Org-mode? I'd say no: start with only one public master branch (and small local branches when needed, of course), and change this workflow when needed. If there are changes that need to be part of Org at some point, we will create a branch for you, just as we have feature branch right now. HTH, -- Bastien
[O] idea, bug report template
Hi, Just read the bug report [O] Bug: Tag Completion Not Prompting for all tags. It was nicely detailed and well structured. That makes me wonder could or should org-mode use some kind of bug report generator. Hitting a keycombo would simply open a org-mode buffer filled with a template making use of all the great org features (e.g. the minimal example could be in a org-babel area to make it executable). The user fills in the details, the minimal example and C-c C-c sends it off to someone who might approve it to send it to this list. There could be a bug section on the website too simply exporting these reports to html. The new comment system would work perfectly with this. Create an Id number and a bug status tag within the org file and it would be close to an org-mode based bug report and tracking system. Torsten
Re: [O] idea, bug report template
Hi Thorsten, check `org-submit-bug-report'. We can certainly improve this and make it more structured/interactive. Thanks, -- Bastien
Re: [O] Bug: SCHEDULED: positioning is fragile [7.8.06 (release_7.8.06.181.ga481)]
on Fri Apr 06 2012, Bastien bzg-AT-gnu.org wrote: Hi Dave, Dave Abrahams d...@boostpro.com writes: Given the following: * TODO Some headline SCHEDULED: 2012-04-05 Thu If I add body text between the headline and the SCHEDULED: line, some things work, but others don't. See this footnote in the section 8.3.1 Inserting deadlines or schedules of the manual: (1) The `SCHEDULED' and `DEADLINE' dates are inserted on the line right below the headline. Don't put any text between this line and the headline. That doesn't make it right. This is a serious usability bug and a newbie trap. As I mentioned in my report, if some of the commands can handle it, there's no reason all of them shouldn't handle it. The only other valid interpretation is that those commands that are handling it as I expect are broken and they're changing things that should really be treated as body text and just happen to look like a SCHEDULED line. -- Dave Abrahams BoostPro Computing http://www.boostpro.com
[O] speeding up org (was How could I mix COMMENT and TODO?)
François wrote: In my very first tries with Org, a few months ago, I put all Org files into the agenda, to discover that Org was very, very slow. So, I changed it all and collected all agenda and TODO into three files only, holding lots of links to all other Org files where the information really was. Org recovered all its speed. And besides, to repair the lost search capabilities, I kludged M-x rgrep so it could search all Org files and reveal contents when visiting hits. Well, the reveal does not always work, but yet, the quicker search is constantly useful to me. Currently, having put TODOs back in their proper Org files and declaring them as agenda files, 38 agenda files are taken out from 360 Org files. Even if slightly less speedy than 3 agenda files, this is still very bearable: Org does not crawl. The way Org handles org-agenda-files as a string naming a file is really convenient to me, it eases the writing of external programs acting on them all. All in all, very satisfactory! Hi François, I made the suggestion that ragel should/could be part of emacs: http://lists.gnu.org/archive/html/emacs-orgmode/2012-03/msg00864.html Summarised by saying that if ragel is integrated into elisp, org code could become both significantly faster and more readable. That most sluggish elisp code may be so due to regular expression code, is discussed here: http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01202.html [In all fairness this is all a bit OT for an org list and should really be on an emacs devel list] Rusi
Re: [O] idea, bug report template
Bastien b...@gnu.org writes: Hi Bastien, check `org-submit-bug-report'. We can certainly improve this and make it more structured/interactive. thats nice, I did not know that I have so many org-mode related configurations. I would really like to copy the magit concept for bugpile-mode (btw - can I use bp-xxx-xxx.el as a prefix? I haven't seen conflicting libraries yet), i.e. a kind of bugpile status buffer where one keystroke (e.g. 's') opens a org-submit-bug-report buffer, but other functionality (and buffers) available in a similar way, e.g. database queries. I even think that the staging concept might be usefull in some cases. -- cheers, Thorsten
Re: [O] [BUG] html export and org results block and indentation
Hello, ** Bastien [2012-04-06 10:54:13 +0200]: Hi Vladimir, Vladimir Lomov lomov...@gmail.com writes: How about that: [see attached file ex.org] I run it with my standard configuration (at end of attached file) and with emacs -Q -eval (setq org-modules '(org-special-blocks)) ex.org Thanks for this info. P.S. I looked into git log but the only recent changes in org-special-blocks.el were variable renaming: 'line' - 'org-special-blocks-line'. That's the problem indeed. I reverted this commit: http://orgmode.org/w/?p=org-mode.git;a=commit;h=9054ba39d085dc2910285a194ed2206b36875289 Please confirm this fixes your problem. Best, Just tried with fresh git commit, it works with enabled `org-special-blocks', thanks. --- WBR, Vladimir Lomov -- Q: How do you play religious roulette? A: You stand around in a circle and blaspheme and see who gets struck by lightning first.
[O] Automatic inter Web-site linking ?
Hi everybody. Here I am with yet another need for an Org solution. There should not be much remaining! I'm sure they *all* say that... :-) I have a set of Org files with links to one another, for which I publish a dozen Web sites or so (using org-publish-project-alist). Whenever a link is within the same file, or a neighbouring file in the same directory (file:*.org style), links are properly converted to HTML references. When the links point to Org files which are a bit more away, file: is not converted to html:, understandably. So I see myself writing either file: or html: links depending on the fact I know that Org will, or will not, do the expected conversion. The problem with writing html: is, of course, that I cannot follow these links while editing. So, I wonder if the conversion capabilities could not be augmented or automated somehow, allowing me to always use file: in the Org file themselves. A while ago, for each site within org-publish-project-alist, I already added a specification line: :top-url http://SOME.WEB.SITE; as it seemingly did not break anything to do so, to save the information somewhere I could easily find it. I'd like to write some glue code to help this, maybe someone could hint me in the proper direction, or maybe suggest other avenues? I tried to read org-exp.el and org-html.el a bit, but they still are a bit too magical, I do not see how they work. Currently, here is what I would like to achieve: whenever there is a file:*.org link which is not translatable with the current algorithms, there is presumably some code somewhere, able to determine the site (from org-publish-project-alist) that would publish that referenced file. If that site is found, and if the site has a :top-url attribute, its value could provide a base to build the proper URL to translate the link. Would remain to hook the link conversion, likely within the current code in org-html.el; but as of now, I do not understand it enough to do (or at least, do cleanly). François
Re: [O] Disqus commenting system tested on Worg
Cool! Great idea and thanks for paving the way, John On Fri, Apr 6, 2012 at 2:33 AM, Bastien b...@gnu.org wrote: Hi all, I created a disqus area for Worg comments. See what it looks like on this page: http://orgmode.org/worg/org-tutorials/org-spreadsheet-intro.html If you want to add comments on a Worg page, see the code in worg/org-spreadsheet-intro.org I don't think having comments for all Worg pages is a good idea, but perhaps it's nice having those on some tutorials and personal pages. Comments are pre-approved with an akismet anti-spam filter on. I will administer this for now, and see if this is useful. Enjoy! -- Bastien
Re: [O] buffer-local org-agenda-files embedded agenda-view
On Fri, Apr 6, 2012 at 3:44 AM, Bastien b...@gnu.org wrote: Hi Mirko, Mirko Vukovic mirko.vuko...@gmail.com writes: Did you mean `org-agenda-list'? No, I meant `org-agenda-listing' -- which doesn't exist right now, and which purpose would be to store all agendas views interactively displayed in a session. Maybe just science fiction right now but who knows? -- Bastien Ah! :-)
Re: [O] speeding up org (was How could I mix COMMENT and TODO?)
At Fri, 6 Apr 2012 18:40:43 +0530, Rustom Mody wrote: François wrote: In my very first tries with Org, a few months ago, I put all Org files into the agenda, to discover that Org was very, very slow. So, I changed it all and collected all agenda and TODO into three files only, holding lots of links to all other Org files where the information really was. Org recovered all its speed. And besides, to repair the lost search capabilities, I kludged M-x rgrep so it could search all Org files and reveal contents when visiting hits. Well, the reveal does not always work, but yet, the quicker search is constantly useful to me. Currently, having put TODOs back in their proper Org files and declaring them as agenda files, 38 agenda files are taken out from 360 Org files. Even if slightly less speedy than 3 agenda files, this is still very bearable: Org does not crawl. The way Org handles org-agenda-files as a string naming a file is really convenient to me, it eases the writing of external programs acting on them all. All in all, very satisfactory! Hi François, I made the suggestion that ragel should/could be part of emacs: http://lists.gnu.org/archive/html/emacs-orgmode/2012-03/msg00864.html Summarised by saying that if ragel is integrated into elisp, org code could become both significantly faster and more readable. That most sluggish elisp code may be so due to regular expression code, is discussed here: http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01202.html [In all fairness this is all a bit OT for an org list and should really be on an emacs devel list] Experiencing slow generation of agenda, was the reason for writing sticky agendas branch. It takes more of a fix the symptom approach, instead speeding up agenda generation, it caches the agenda buffer itself and lets user refresh it, while also allowing for multiple agenda buffers, so that a C-c a / search buffer, does not discard your C-c a a one. My initial idea was to wrap all the scanner functions (like org-todo-list or org-tags-view), with caches, but after a day or so it was obvious that its not a a few days task. But if someone takes up task of speeding up agenda generation, IMHO the idea of re-factoring the scanning functions to avoid re-scanning .org files that had not changed, will have best chance of producing results. Regards, Max
Re: [O] layout org-babel menu WAS: About org-babel menu
Torsten Wagner torsten.wag...@gmail.com writes: Hi, for me the biggest trouble with babel is to remember the possible keywords in the header for different languages. There were a lot of ongoing syntax change which did not make it easier for me to remember all this. Thus a menu which is organised by languages offering all possible settings for each language would be very helpful. | Python || | export - code - result - both - none || | tangle - no - yes- filename | | | result - value - output | | | ... | ... Not sure how effectual this would be in a main menu. It would be definitely awesome in a context menu That would be (copied from worg) [*] indicates cursor position #+NAME: factorial #+BEGIN_SRC haskell [*] :results silent :exports code :var n=0 a context menu would appear presenting all possible header arguments for haskell #+NAME: factorial #+BEGIN_SRC haskell :results [*] :exports code :var n=0 a context menu presenting all possible values for the header argument :results in haskell I guess that together with the possibility to call this menu by keyboard strokes or alternatively show the same infos in the minibuffer would be a great win for babel and it would make many questions here on the list unnecessary. Furthermore, any change or extension in the syntax for a certain language would be directly reflected to the end-user. E.g., If I suddenly see the menu entry :exports 3dprint, I would be curious and check it out on worg and the manual ;) Totti Aloha Totti, I wonder if your context menu idea might be easy to accomplish with a function template? YASnippet has a way to choose a value from a list. All the best, Tom On 5 April 2012 21:44, Eric Schulte eric.schu...@gmx.com wrote: Rainer M Krug r.m.k...@gmail.com writes: On 28/03/12 01:07, Bastien wrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: So I would see it as a useful way of promoting babel (and therefore org-mode) and also as a nice reminder of less frequently (but nevertheless usefull) functionality. Agreed. Is anyone volunteering for listing the items in such a menu for Babel? If so, I'm willing to implement this. OK - let me start this. Org | + Babel | + edit | | | + open surce buffer (that C-c ') | + insert source block skeleton | + ... | + ... | + tangle | | | + tangle buffer | + inverse tangle | + ... | + ... | + evaluate | | | + evaluate code block | + evaluate subtree | + ... | + ... | + ... | + ... | + help | | | + Link to info help on header arguments | + Link to info help on how to enable languages | + URL to language specific help on worg | + ... | + ... So - At the moment this is a skeleton of the babel menu - Comments? forgotten commands (I assume many? Hi Rainer, Thanks for starting this. It looks like a great skeleton. Here are a couple of comments which I hope are helpful. To find more publicly available Babel function you can do C-c C-v h in an Org-mode buffer or run the org-babel-describe-bindings command There are two high level sub-menus which I may suggest be added to the above, namely languages and library of babel, which could list information on available languages and list library of babel functions respectively. I'm not sure how menus are normally used, specifically how Emacs breaks functionality between the menu, configuration and help sub-systems. It is possible that because of such boundaries both the help and languages submenus may not be appropriate. Two other pieces of menu content which occur to me are a list of the code blocks available in the current buffer including some information on each block (e.g., name, arguments,), and a way to show the user what the current file wide header arguments are -- note: there already exists a function for displaying this information on the code block level `org-babel-view-source-block-info' which may be sufficient. Cheers, I'm not convince we should have a menu item to (de)activate each language though -- more a menu that exposes the basics. Agreed. Cheers, Rainer Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/ -- Thomas S. Dye http://www.tsdye.com
Re: [O] Google Summer of Code 2012 Student Application
Hi, On Thu, Apr 5, 2012 at 3:46 AM, Torsten Wagner torsten.wag...@gmail.com wrote: Hi Andrew, Reading this proposal and having a bit background in writing proposals, I have the following suggestion: * I'm not sure everyone (at least the one who review this) know what org-mode is. There should be a very small summary about org-mode and the key-benefit being plain text (which is why you can start this project after all). This raises the point that I have no idea at all who will be reviewing my proposal. I originally wrote the proposal targeting Org-Mode devs as the audience. This has provided some important insight to my application. Thank you! * In the way the proposal is written, you address org-mode users which uses git (later you mention other CVS too). This actually makes, or at least sound like, the proposal being only useful for a (small) intersection of users namely org-mode AND (in the sense of an logic AND) git-user. I would find it more useful to describe this work as being an extension for org-mode users; ** They can start to collaborate on a org-mode files, including collaboration with users of possible other software tools (e.g. mobileorg apps). ** Org-mode user can use a CVS system which is not only of interest for collaboration but for keeping a chronological order of changes in e.g. a project file. ** It makes org-mode a possible tool for software developers which can now use org-files e.g. for documentation and notes beside there source code in the same git repository. All this points would show that the proposal is going to extend org-mode instead of being limited useful for only a very particular user-base. Finally, I guess it would be good to mention that this project (and org-mode in general) is not limited to a OS but attracts users of MS Windows, Mac OS and Linux. Simply to demonstrate that the user-base can be expected to be rather large. (Not sure if the GNU people like this ;) ) Torsten These are all great suggestions and points. This triggered a complete rewrite of the benefits section. Thank you for your help. Regards, Andrew Young
Re: [O] Problem with exporting TAB key
Hello, ** Bastien [2012-04-06 11:11:00 +0200]: Hi Vladimir, Vladimir Lomov lomov...@gmail.com writes: Just tried, I commented that line in org-exp.el, run Emacs open ORG file export it to HTML and tangle it. HTML document has spaces instead of TAB as well as shell file. Can you try the change proposed by Nick in combination with (setq org-src-preserve-indentation t) an report? Details: 1. I (temporary) removed org files distributed with Emacs; 2. Tried following combinations: A - commented `untabify' line in `org-exp.el' B - run emacs with `org-src-preserve-indentation' set to `t' not(A) not(B) - TAB is replaced with spaces in `ex2.sh' A not(B) - TAB is replaced with spaces not(A) B - TAB remains in `ex2.sh' A B - TAB remains I'm not sure if step 1 is required but I want to be sure that org files which are in `/usr/share/emacs/site-package' to be used. I use package manager of my distro (Archlinux) to install Emacs compiled from source (bzr repo) and org package, taken from git repo (org files are installed to `/usr/share/emacs/site-package/org{,_contrib}'). P.S. There is another issue with indentation: when using `C-c '' to edit source block in appropriate major mode, then in case of shell one, it adds extra two spaces at begin on any command. If `org-src-preserve-indentation' is set to `t' that two spaces remains, though it is not big problem. --- WBR, Vladimir Lomov -- Drinking coffee for instant relaxation? That's like drinking alcohol for instant motor skills. -- Marc Price
[O] [gsoc] Bugpile proposal submitted (FYI)
Hi List, I made it before the deadline and submitted a proposal for the GSoC 2012. Its about developing a bugtracker for Org-mode and with Org-mode (and PicoLisp). The name of the application is bugpile, and it serves as an example project and proof of concept for the second, more conceptual goal of my proposal: merging Org-mode/Git and PicoLisp into a single framework for dynamic web-progamming and content management (that will be called iOrg - interactive Org). On April 23 Google will announce the accepted students. If you want to learn more about my project, have a look here: http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/bugpile/index.html -- cheers, Thorsten
Re: [O] Struggling with large: :LOGBOOK: .. :END: blocks
Hi Rainer, Rainer Stengele rainer.steng...@online.de writes: Wouldn't it be a nice thing to be able to configure the number of visible block entries? This could result in: Opening the :LOGBOOK block with TAB shows this: * TODO text :LOGBOOK: CLOCK: [2012-03-27 Di 13:00]--[2012-03-27 Di 13:30] = 0:30 CLOCK: [2012-03-06 Di 11:30]--[2012-03-06 Di 11:45] = 0:15 CLOCK: [2012-03-02 Fr 14:45]--[2012-03-02 Fr 15:15] = 0:30 .. :END: Another TAB would show all CLOCK entries. The next TAB would close the block again. The variable could configure: show the first n entries of the BLOCK show the last n entries of the BLOCK show the first n and last m entries of the BLOCK A fuzzy logbook view (perhaps similar to the fuzziness sparse trees currently have, providing a few lines of context) would indeed be pretty cool. I also have some rather long strings of clock entries, but I prefer to have them summarized for me using the `org-clock-report' function, C-c C-x C-r. Cheers, Will -- I use grml (http://grml.org/)
Re: [O] ATTR_HTML for a clickable image, howto?
Christian and others, Will CSS solutions described in this thread work if you always export subtrees (not entire .org files) and never include style files? If so, how do you go about using them in Org? Is there a less awkward way than using an HTML block with a div with style=? This is awkward as you have to do it for every such block: #+HTML: div style=color: black; background-color: #f4a460 It would be great to have a generic style of some sort, specify the scoped Org elements with neat syntax (maybe like #+myblock_begin:) instead of HTML blocks, and to be able to export it for subtrees (not entire .org files!) in a completely self-contained way with no need to include any file. An example use case is Blogger, where you /could/ try to change the CSS for your template, but it is far better to have your post be entirely self-contained with all the style information you need. Maybe this question deserves its own thread? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] ATTR_HTML for a clickable image, howto?
On 2012-04-06, Samuel Wales samolog...@gmail.com wrote: It would be great to have a generic style of some sort, specify the scoped Org elements with neat syntax (maybe like #+myblock_begin:) Oops, if we did it this way it would be like #+begin_mycolor ... #+end_mycolor of course. But again, entirely self-contained.
Re: [O] layout org-babel menu WAS: About org-babel menu
Torsten Wagner torsten.wag...@gmail.com writes: Hi, for me the biggest trouble with babel is to remember the possible keywords in the header for different languages. There were a lot of ongoing syntax change which did not make it easier for me to remember all this. Thus a menu which is organised by languages offering all possible settings for each language would be very helpful. | Python || | export - code - result - both - none || | tangle - no - yes- filename | | | result - value - output | | | ... | ... Not sure how effectual this would be in a main menu. It would be definitely awesome in a context menu That would be (copied from worg) [*] indicates cursor position #+NAME: factorial #+BEGIN_SRC haskell [*] :results silent :exports code :var n=0 a context menu would appear presenting all possible header arguments for haskell #+NAME: factorial #+BEGIN_SRC haskell :results [*] :exports code :var n=0 a context menu presenting all possible values for the header argument :results in haskell I guess that together with the possibility to call this menu by keyboard strokes or alternatively show the same infos in the minibuffer would be a great win for babel and it would make many questions here on the list unnecessary. Furthermore, any change or extension in the syntax for a certain language would be directly reflected to the end-user. E.g., If I suddenly see the menu entry :exports 3dprint, I would be curious and check it out on worg and the manual ;) Totti Hi, I've put together a first pass at such support for interactive header argument look up. Please evaluate this elisp code [1] in your *scratch* buffer, then in an Org-mode buffer insert a code block like the following with the point at [*], and press tab. #+begin_src R :[*] :foo #+end_src You should see an auto-completion list showing which header arguments are available and (for those with known arguments) which arguments may be specified. This includes language specific header arguments, i.e., the R code block above suggests about twice as many possible header arguments as an elisp block. Note this expand on tab after : behavior is active on #+headers: lines as well. This makes use of the `org-babel-common-header-args-w-values' variable which holds header argument names and completions, as well as the org-babel-header-arg-names:lang variables. Does this seem like a good interface? Is it missing any important functionality? Best, Footnotes: [1] ;; Add support for completing-read insertion of header arguments after : (defun org-babel-header-arg-expand () Call `org-babel-enter-header-arg-w-completion' in appropriate contexts. (when (and (= (char-before) ?\:) (org-babel-where-is-src-block-head)) (org-babel-enter-header-arg-w-completion (match-string 2 (defun org-babel-enter-header-arg-w-completion (optional lang) Insert header argument appropriate for LANG with completion. (let* ((lang-headers-var (intern (concat org-babel-header-arg-names: lang))) (lang-headers (when (boundp lang-headers-var) (mapcar #'symbol-name (eval lang-headers-var (headers (append (mapcar #'symbol-name org-babel-header-arg-names) lang-headers)) (header (org-completing-read Header Arg: headers)) (args (cdr (assoc (intern header) org-babel-common-header-args-w-values))) (arg (when (and args (listp args)) (org-completing-read (format %s: header) (mapcar #'symbol-name (car args)) (insert (concat header (or arg ))) (cons header arg))) (add-hook 'org-tab-first-hook 'org-babel-header-arg-expand) -- Eric Schulte http://cs.unm.edu/~eschulte/
[O] Agenda filter for a specific file
Hi guys, Is there a way to define an agenda filter that will search in only one of the agenda files? The reason I do that is because although I have several files added to the agenda, only one contains actionable items (gtd.org). Thanks, - Marcelo.