[Orgmode] RELEASE: Org-mode version 6.32
Hi everyone, I have uploaded version 6.32 of Org, with lots of good additions and the usual suite of bug fixes. Thanks to everyone who contributed to this release. Enjoy! - Carsten Changes in Version 6.32 === Rewrite of org-mobile.org, for MobileOrg 1.0 (build 20) MobileOrg is currently under review at the iPhone App Store. You will need Org-mode version 6.32 to interact with it. Added support for habit consistency tracking ~ /org-habit.el/ contains new code to track habits. Please configure the variable org-modules to activate it. When active, habits (a special TODO entry) will be displayed in the agenda together with a consistency graph. Habit tracking is described in a new [manual section]. Thanks to John Wiegley for this contribution. [manual section]: http://orgmode.org/manual/Tracking-your-habits.html New context-aware tag auto-exclusion ~ After writing a function relating to location and context information, you will be able to press `/ RET' in the agenda to exclude tasks that cannot be done in the current context. For details, see the information about filtering in the manual. Thanks to John Wiegley for a patch to this effect. New clock resolving tools ~~ When clocking into a new task while no clock is running, Org now checks for orphaned CLOCK lines and offers to repair these before starting the clock. You can also configure this feature to check for idle time and prompt you to subtract that time from the running timer. See the new [manual section] for more details. Thanks to John Wiegley for a patch to this effect. [manual section]: http://orgmode.org/manual/Resolving-idle-time.html Mutually exclusive tag groups can now have a name in the tags interface The customize interface allows to optionally add a string to the beginning or end of such a group. Thanks to James TD Smith for a patch to this effect. Agenda Search view: Search for substrings ~~ The default in search view (/C-c a s/)is now that the search expression is searched for as a /substring/, i.e. the different words must occur in direct sequence, and it may be only part of a word. If you want to look for a number of separate keywords with Boolean logic, all words must be preceded by `+' or `-'. This was, more-or-less, requested by John Wiegley. Make space and backspace scroll the show window in the agenda ~~ Pressing SPC again after using it to show an agenda item in another window will make the entire subtree visible, and show scroll it. Backspace and DEL will scroll back. This was a request by Eric Fraga. File tags are now offered for completion during a tag prompts ~~ Requested by Matt Lundin. Make `- SPC' an agenda filter that selects entries without any tags Request by John Wiegley. Better way to edit multi-line macro definitions The editing tool key `C-c '= now also edits =#+MACRO' definitions, including multiline macros. Restructured Manual The manual has been slightly reorganized. The archiving stuff, which was - somewhat obscurely - hidden in the /Document Structure/ chapter, has been moved into the new chapter /Capture-Refile-Archive/. Also, there is a new chapter /Markup/ which contains both the markup rules (moved there from the Export chapter) and the documentation for embedded LaTeX. Improved figure placement in LaTeX and HTML export ~~~ Text can now be wrapped around figures. See the manual for details. Allow date to be shifted into the future if time given is earlier than now ~ ~ ~ By setting (setq org-read-date-prefer-future 'time) you indicate to Org that, if you only give a time at the date/time prompt, and if this time is earlier then the current time, then the date of tomorrow will be assumed to be valid for this event. A similar mechanism was already in place for dates, but now you can make it work for times as well. Collected changes in org-babel ~~~ - Source blocks can now reference source-blocks in other files using `filepath:srcname' syntax. - Inline code blocks like `src_python{2+2}' are now exported - Remote source block calls using the `#+lob: srcname(arg=val)' syntax can now be exported. - When `:file' is supplied with an `R' block, graphics are automatically sent to file and linked from the org buffer, thus appearing on export. The image
Re: [Orgmode] org-agenda-skip-entry-if 'notdeadline?
On Oct 26, 2009, at 5:49 AM, Michael Gilbert wrote: Hi -- Still trying to figure out how to show only (current) deadlines in my agenda. I use org-agenda-skip-entry-if 'notdeadline but that still seems to include all the scheduled items who have deadlines (some time in the future, but not currently). I apologize for missing something obvious, but ... any advice? (setq org-agenda-custom-commands '((d Due today agenda ((org-deadline-warning-days 0) (org-agenda-skip-scheduled-if-deadline-is-shown t) (org-agenda-skip-function (lambda () (let* ((dl (org-entry-get nil DEADLINE))) (if (or (not dl) (equal dl ) (org-time dl (org-time-today))) (progn (outline-next-heading) (point)) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bugs when converting to LaTeX
Hello, Here an ECM (Example Complete and Minimal) showing two bugs occurring when converting to LaTeX. --8---cut here---start-8--- * Bugs ** Conversion to texttt - Put the command =runit= in hard Not done because of the following word being between quotes... ** Paragraph disappears... - Add the code if + it is above 0 + it is less than 10 For the other cases, do nothing. The above paragraph is NOT converted to LaTeX! You don't see it in the PDF... --8---cut here---end---8--- The second one is more important, as some text is just ignored in the conversion process. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org manual - section 2.8
I got tripped up by, 2.8 Plain lists === Within an entry of the outline tree, hand-formatted lists can provide additional structure. They also provide a way to create lists of checkboxes (*note Checkboxes::). Org supports editing such lists, and the HTML exporter (*note Exporting::) parses and formats them. Org knows ordered lists, unordered lists, and description lists. * _Unordered_ list items start with `-', `+', or `*'(1) as bullets. * _Ordered_ list items start with a numeral followed by either a period or a right parenthesis, such as `1.' or `1)'. * _Description_ list items are like unordered list items, but contain the separator ` :: ' to separate the description _term_ from the description. ... this last item contains the phrase `are like'; wouldn't it read clearer, * _Description_ list items are unordered list items, and contain the separator ` :: ' to separate the description _term_ from the description. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
Hello fellow orgers, I have been using the emacs-snapshot package for a long time, since the era of Ubuntu 7.04, and it worked fine and I got all the latest versions of emacs with it. Now, I just installed 9.10 from scratch, and when I search for emacs on apt-cache, I get the following relevant packages: * emacs23 * emacs-snapshot-gtk The emacs-version for emacs23 returns: GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-15 on yellow, modified by Debian For emacs-snapshot-gtk, I get: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Which one would be the most recent version (or better package to use)? Thanks in advance, Marcelo. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
I have been using the emacs-snapshot package for a long time, since the era of Ubuntu 7.04, and it worked fine and I got all the latest versions of emacs with it. Now, I just installed 9.10 from scratch, and when I search for emacs on apt-cache, I get the following relevant packages: * emacs23 * emacs-snapshot-gtk The emacs-version for emacs23 returns: GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-15 on yellow, modified by Debian For emacs-snapshot-gtk, I get: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Which one would be the most recent version (or better package to use)? I had some problems using emacs23 in Karmic. Several errors loading my .emacs and a non functional emacs-lisp menu. Using the ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppa everything works as expected using the same .emacs. Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
Thanks for the reply. I had some problems using emacs23 in Karmic. Several errors loading my .emacs and a non functional emacs-lisp menu. Using the ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppahttps://launchpad.net/%7Eubuntu-elisp/+archive/ppaeverything works as expected using the same .emacs. What is the difference between the emacs23 and emacs-snapshot-gtk packages? On Mon, Oct 26, 2009 at 12:19 PM, Ian Barton li...@manor-farm.org wrote: I have been using the emacs-snapshot package for a long time, since the era of Ubuntu 7.04, and it worked fine and I got all the latest versions of emacs with it. Now, I just installed 9.10 from scratch, and when I search for emacs on apt-cache, I get the following relevant packages: * emacs23 * emacs-snapshot-gtk The emacs-version for emacs23 returns: GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-15 on yellow, modified by Debian For emacs-snapshot-gtk, I get: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Which one would be the most recent version (or better package to use)? I had some problems using emacs23 in Karmic. Several errors loading my .emacs and a non functional emacs-lisp menu. Using the ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppahttps://launchpad.net/%7Eubuntu-elisp/+archive/ppaeverything works as expected using the same .emacs. Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
Ian Barton li...@manor-farm.org writes: I have been using the emacs-snapshot package for a long time, since the era of Ubuntu 7.04, and it worked fine and I got all the latest versions of emacs with it. Now, I just installed 9.10 from scratch, and when I search for emacs on apt-cache, I get the following relevant packages: * emacs23 * emacs-snapshot-gtk The emacs-version for emacs23 returns: GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-15 on yellow, modified by Debian For emacs-snapshot-gtk, I get: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Which one would be the most recent version (or better package to use)? I had some problems using emacs23 in Karmic. Several errors loading my .emacs and a non functional emacs-lisp menu. Using the ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppa everything works as expected using the same .emacs. Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode This fixes the missing menus for me: #!/bin/bash # edit export GDK_NATIVE_WINDOWS=1 emacsclient --alternate-editor= -c $@ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
What is the difference between the emacs23 and emacs-snapshot-gtk packages? The snapshot is derived from the latest emacs in cvs. The emacs23 is the stable v23 release. The snapshot package will contain extra bugfixes, features and quite possibly some extra bugs:) Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [off-topic] emacs23 or emacs-snapshot-gtk (Ubuntu)
Richard Riley wrote: Ian Barton li...@manor-farm.org writes: I have been using the emacs-snapshot package for a long time, since the era of Ubuntu 7.04, and it worked fine and I got all the latest versions of emacs with it. Now, I just installed 9.10 from scratch, and when I search for emacs on apt-cache, I get the following relevant packages: * emacs23 * emacs-snapshot-gtk The emacs-version for emacs23 returns: GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-15 on yellow, modified by Debian For emacs-snapshot-gtk, I get: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Which one would be the most recent version (or better package to use)? I had some problems using emacs23 in Karmic. Several errors loading my .emacs and a non functional emacs-lisp menu. Using the ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppa everything works as expected using the same .emacs. Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode This fixes the missing menus for me: #!/bin/bash # edit export GDK_NATIVE_WINDOWS=1 emacsclient --alternate-editor= -c $@ Thanks. There seem to be a couple of bug reports with similar problems to mine for Karmic. I'll give your fix a try. So it looks as though it's a GTK not an Emacs bug. Best wishes, Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org manual - section 2.8
Yes, thanks, I made that change. - Carsten On Oct 26, 2009, at 5:51 PM, Sean Sieger wrote: I got tripped up by, 2.8 Plain lists === Within an entry of the outline tree, hand-formatted lists can provide additional structure. They also provide a way to create lists of checkboxes (*note Checkboxes::). Org supports editing such lists, and the HTML exporter (*note Exporting::) parses and formats them. Org knows ordered lists, unordered lists, and description lists. * _Unordered_ list items start with `-', `+', or `*'(1) as bullets. * _Ordered_ list items start with a numeral followed by either a period or a right parenthesis, such as `1.' or `1)'. * _Description_ list items are like unordered list items, but contain the separator ` :: ' to separate the description _term_ from the description. ... this last item contains the phrase `are like'; wouldn't it read clearer, * _Description_ list items are unordered list items, and contain the separator ` :: ' to separate the description _term_ from the description. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bugs when converting to LaTeX
On Oct 26, 2009, at 4:46 PM, Sébastien Vauban wrote: Hello, Here an ECM (Example Complete and Minimal) showing two bugs occurring when converting to LaTeX. --8---cut here---start-8--- * Bugs ** Conversion to texttt - Put the command =runit= in hard Not done because of the following word being between quotes... Fixed. ** Paragraph disappears... - Add the code if + it is above 0 + it is less than 10 For the other cases, do nothing. The above paragraph is NOT converted to LaTeX! You don't see it in the PDF... Unfortunately, this is a weakness of the list parser in the LaTeX exporter. It cannot handle this kind of post-subitem text in an item list. This really must be fixed, and it is on my list, but it is hard. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Unable to clock in on task
I updated to 6.32 this morning and am now unable to clock in on tasks. At first, there was an issue with an org file having a dangling clock- in. When I attempted to log in to a task, it alerted me to the dangling task. No matter how I answered (cancel, etc), Emacs crashed. I then fixed the dangling clock in question and tried again. Now, emacs crashed immediately without displaying a menu. I am guessing that the issue is still related to a dangling clock-in, but cannot be sure. Is there a way to disable the clock-checking feature? I'm on emacs 23 cocoa on Snow Leopard. Thanks, Keith Lancaster klancaster1...@acm.org ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Separate function for config listing from org-submit-bug-report
The code to list a user's Org configuration which differs from the defaults is very useful. However, I've never run the M-x org-submit-bug-report command to completion, since I'm prompted for my GMail IMAP password before the config output is shown. I wouldn't want to spam the list with test data. I'd like to make a feature request that the configuration-dump code be refactored to a separate command which can be inserted at point or to a new buffer. org-submit-bug-report would call this function to build it's message. I couldn't get the form inside of (org.el): (when (yes-or-no-p Include your Org-mode configuration ) ) to execute in the scratch buffer. Thanks, Jeff ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Unable to clock in on task
Keith Lancaster klancaster1...@acm.org wrote: I updated to 6.32 this morning and am now unable to clock in on tasks. At first, there was an issue with an org file having a dangling clock- in. When I attempted to log in to a task, it alerted me to the dangling task. No matter how I answered (cancel, etc), Emacs crashed. I then fixed the dangling clock in question and tried again. Now, emacs crashed immediately without displaying a menu. I am guessing that the issue is still related to a dangling clock-in, but cannot be sure. Is there a way to disable the clock-checking feature? I'm on emacs 23 cocoa on Snow Leopard. The culprit must be the emacs 23 cocoa on Snow Leopard part. It works fine (in the sense that it does not lead to emacs crashes) on Linux: Org-mode version 6.32 (release_6.32.8.g9077) GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-10-13 on gamaville.dokosmarshall.org I don't clock much (maybe one of these years, when I find the time... the usual excuse of the procrastinator :-), so I'm not sure how things are supposed to work. I tried to clock in a task from the agenda (using I), I get a dangling clock message, I select cancel and everything is fine. I then clock out and the clock gets updated appropriately. I then clock in again and get another dangling clock warning (with ~12 mins on it). After doing it a few times on a couple of different items, I don't get the dangling messages any more either. I guess all the clocks I had started way back when, when I was playing with clocks, and had not closed, were found, dealt with, and now I'm all set - maybe. If anything is really wrong, I'm sure we'll get an earful when Bernt (aka the king of clocking) upgrades !-) As for turning things off, the following two (excerpted from org-clock.el) might help (untested): , | ... | (defcustom org-clock-idle-time nil | When non-nil, resolve open clocks if the user is idle more than X minutes. | :group 'org-clock | :type '(choice | (const :tag Never nil) | (integer :tag After N minutes))) | | (defcustom org-clock-auto-clock-resolution 'when-no-clock-is-running | When to automatically resolve open clocks found in Org buffers. | :group 'org-clock | :type '(choice | (const :tag Never nil) | (const :tag Always t) | (const :tag When no clock is running when-no-clock-is-running))) | ... ` HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Unable to clock in on task
Nick Dokos nicholas.do...@hp.com writes: Keith Lancaster klancaster1...@acm.org wrote: I updated to 6.32 this morning and am now unable to clock in on tasks. At first, there was an issue with an org file having a dangling clock- in. When I attempted to log in to a task, it alerted me to the dangling task. No matter how I answered (cancel, etc), Emacs crashed. I then fixed the dangling clock in question and tried again. Now, emacs crashed immediately without displaying a menu. I am guessing that the issue is still related to a dangling clock-in, but cannot be sure. Is there a way to disable the clock-checking feature? I'm on emacs 23 cocoa on Snow Leopard. The culprit must be the emacs 23 cocoa on Snow Leopard part. It works fine (in the sense that it does not lead to emacs crashes) on Linux: Org-mode version 6.32 (release_6.32.8.g9077) GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-10-13 on gamaville.dokosmarshall.org I don't clock much (maybe one of these years, when I find the time... the usual excuse of the procrastinator :-), so I'm not sure how things are supposed to work. I tried to clock in a task from the agenda (using I), I get a dangling clock message, I select cancel and everything is fine. I then clock out and the clock gets updated appropriately. I then clock in again and get another dangling clock warning (with ~12 mins on it). After doing it a few times on a couple of different items, I don't get the dangling messages any more either. I guess all the clocks I had started way back when, when I was playing with clocks, and had not closed, were found, dealt with, and now I'm all set - maybe. If anything is really wrong, I'm sure we'll get an earful when Bernt (aka the king of clocking) upgrades !-) Eeek! I have an official title? :D I upgraded this morning and clocking works fine for me (again in Linux) but I'm on GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on raven, modified by Debian. Org-mode version 6.32 (release_6.32.dirty) I don't currently use the clock resolution functionality but plan to play with it soon. (I currently have no open clock entries except the task I'm clocking right now). -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] sexp in org remember templates
Not being much of an elisp programmer and just returning to try and integrate with org-learn a little :- This (vocab?v * Learn TODO %(format '%s' rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format '%s' rgr/orig-word)\n:trans:\t%(format '%s' rgr/trans-word)\n:END:%! nil bottom nil) fails me by outputting: , | * Learn TODO [Error: (wrong-type-argument stringp %s)] :VOCAB: | :PROPERTIES: | :orig:%![Error: (wrong-type-argument stringp %s)] | :trans: %![Error: (wrong-type-argument stringp %s)] | :END:%! ` both rgr/orig-word and rgr/trans-word are set as strings. Q1 : can I use an elisp var directly as opposed to simulating a func like above? Q2 : What is wrong with the above? Whats wrong with that format of a sexp? Q3 : how can I specify in the template to auto schedule a TODO for n days in advance? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: sexp in org remember templates
Richard Riley rileyrg...@gmail.com writes: Not being much of an elisp programmer and just returning to try and integrate with org-learn a little :- This (vocab?v * Learn TODO %(format '%s' rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format '%s' rgr/orig-word)\n:trans:\t%(format '%s' rgr/trans-word)\n:END:%! nil bottom nil) fails me by outputting: Just to follow up to my own post I now see a ginle function call will work e.g (vocab?v * Learn TODO %(rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(rgr/orig-word)\n:trans:\t%(rgr/trans-word)\n:END:%! nil bottom nil) Possibly me not knowing enough elisp but possibly also could support my initial attempt? Thanks for any explanation. , | * Learn TODO [Error: (wrong-type-argument stringp %s)] :VOCAB: | :PROPERTIES: | :orig: %![Error: (wrong-type-argument stringp %s)] | :trans: %![Error: (wrong-type-argument stringp %s)] | :END:%! ` both rgr/orig-word and rgr/trans-word are set as strings. Q1 : can I use an elisp var directly as opposed to simulating a func like above? Q2 : What is wrong with the above? Whats wrong with that format of a sexp? Q3 : how can I specify in the template to auto schedule a TODO for n days in advance? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] sexp in org remember templates
Richard Riley rileyrg...@gmail.com wrote: Not being much of an elisp programmer and just returning to try and integrate with org-learn a little :- This (vocab?v * Learn TODO %(format '%s' rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format '%s' rgr/orig-word)\n:trans:\t%(format '%s' rgr/trans-word)\n:END:%! nil bottom nil) fails me by outputting: At the very least, you need to avoid single quotes for quoting strings - a single quote has a very special meaning to lisp in general: it inhibits evaluation of the following sexp. Try something like this instead: (vocab?v * Learn TODO %(format \%s\ rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format \%s\ rgr/orig-word)\n:trans:\t%(format \%s\ rgr/trans-word)\n:END:%! nil bottom nil) However, no guarantees: when (or even whether) the format calls will be executed (let alone whether they'll produce the correct result) depends on the code that handles this construct. There have been a couple of questions on the mailing list about such evaluations in the context of org-remember-templates, and IIRC, Carsten had added an evaluation mechanism there - see e.g. the thread at http://thread.gmane.org/gmane.emacs.orgmode/14521 and another thread referenced therein for some details. But I don't know if this will do what you need it to do. HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: sexp in org remember templates
Nick Dokos nicholas.do...@hp.com writes: Richard Riley rileyrg...@gmail.com wrote: Not being much of an elisp programmer and just returning to try and integrate with org-learn a little :- This (vocab?v * Learn TODO %(format '%s' rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format '%s' rgr/orig-word)\n:trans:\t%(format '%s' rgr/trans-word)\n:END:%! nil bottom nil) fails me by outputting: At the very least, you need to avoid single quotes for quoting strings - a single quote has a very special meaning to lisp in general: it inhibits evaluation of the following sexp. Try something like this instead: (vocab?v * Learn TODO %(format \%s\ rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format \%s\ rgr/orig-word)\n:trans:\t%(format \%s\ rgr/trans-word)\n:END:%! nil bottom nil) However, no guarantees: when (or even whether) the format calls will be executed (let alone whether they'll produce the correct result) depends on the code that handles this construct. There have been a couple of questions on the mailing list about such evaluations in the context of org-remember-templates, and IIRC, Carsten had added an evaluation mechanism there - see e.g. the thread at http://thread.gmane.org/gmane.emacs.orgmode/14521 and another thread referenced therein for some details. But I don't know if this will do what you need it to do. HTH, Nick Thanks for the info. In the meantime I had just created two functions with no parameters to return the values and this worked. Trying now to auto remember. I have some code like this:- , | (defun rgr/context-babel() | (interactive) | (save-window-excursion(unwind-protect | (let* ((default (region-or-word-at-point))) | (setq default (read-string (format Translate \%s\ : default) nil nil default)) | (when (length default) (setq | rgr/trans-word (babel default nil t))(setq rgr/orig-word | default)(org-remember nil ?v)(message %s rgr/trans-word)) ` Thanks. I had already create two funcs to call so my template is now:- , | (vocab?v * TODO Learn %(rgr/orig-word) | :VOCAB:\n:PROPERTIES:\n:orig:\t%(rgr/orig-word)\n:trans:\t%(rgr/trans-word)\n:END:%! | nil bottom nil) ` and the translate code I call does this: , | ;;;###autoload | (defun rgr/context-babel() | (interactive) | (save-window-excursion(unwind-protect | (let* ((default (region-or-word-at-point))) | (setq default (read-string (format Translate \%s\ : default) nil nil default)) | (when (length default) (setq rgr/trans-word (babel default nil t))(setq rgr/orig-word default)(org-remember nil ?v)(message %s rgr/trans-word)) ` and now I have my translate hot key auto creating VOCAB TODOs. The only thing I need to know now is how to auto schedule them. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Auto scheduling an org-remember-template item
I have an org-remember-template :- , | (vocab ?v ** TODO Learn | %(rgr/orig-word)\t:VOCAB:\n%u\n:PROPERTIES:\n:orig:\t%(rgr/orig-word)\n:trans:\t%(rgr/trans-word)\n:END:\n%! | vocab.org) ` How can I auto schedule (no prompts) this auto-save item (%!) to +1d ? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment
Torsten Wagner torsten.wag...@gmail.com writes: ... Within a LaTeX-file (org-file) I like to use python snippets to perform calculus and other tasks which are otherwise extremely difficult or time consuming to perform directly in LaTeX. E.g. on-the-fly-generation of graphs or calculus of statistical values (e.g., (very simple) the mean value of n numbers). I guess org-mode together with org-babel can do most of this already. I played around with it and it is very nice, many thanks to the developers. However, I found the following point which I wasn't able to figure out yet. Hi Torsten, 1. Hiding of the source code blocks for export I like to export the results of the source code block to LaTeX only. However, Using ':exports results' specifies that only the results should appear in the exported document. This #+begin_src python :exports results 6 + 6 #+end_src is exported to latex as this: \begin{verbatim} 12 \end{verbatim} Is that working for you? I tried different options all resulting in embedding the source-code itself inside the final LaTeX file. I guess this is more due to the org-export function rather then org-babel 2. Inline source code blocks I guess this was discussed once already. Instead of a verbose source code block a single short command to elaborate a python variable or a one line calculus would be nice e.g., #:session_name a# to replace this command by the results of variable a of the session session_name during the export to LaTeX. Yes, you can do that (and it is now doumented on worg). The syntax for that is src_lang[optional header args]{code} See below for examples. I like to combine this with a little python module specialised in creating proper LaTeX export for all kind of python data types. E.g. tab_export([1,2,3,4,5]) could generate the string 1 2 3 4 5 \\ The idea is to use this as a form of reproducible research allowing the data evaluation together with the textual and graphical representation. Furthermore, I would like to use org as a publication system with meta- description capabilities. This would allow to commentary what someone is doing between the lines. By this one could merge somehow the lab-book, data analysis and the final paper into one org-file (or org-project) and keep always all infos and data close together Something like (pseudo code): /-/ 12.03.2148: Scotty I'm going to create a better warp drive system: ... First measurements should show the better efficiency. The old set-up is moved to the lab downstairs the old measurement files back-up is at First lets load the values and calculate the performance: #+srcname: measurement #+begin_src python data=load(measurement.csv) perf = calculate_performance(data.values) #+end_src This was the final measurement performed with the new set-up. It shows already the nice improvements... Just some infos of the measurement Measurement date: #:measurement data.date# Measurement parameter: #:measurement data.param1# You can use inline blocks as follows. Note that the source block needs to be evaluated to ensure that the variables exist in the session (hence the :exports results header) --8---cut here---start-8--- #+srcname: measurement #+begin_src python :session :exports results date = 12.03.2148 param1 = 19.7 perf = 77 #+end_src Measurement date: src_python[:session]{date} Measurement parameter: src_python[:session]{param1} --8---cut here---end---8--- 13.3.2148: Scotty Spoke told me it could be better by performing a new warp-core calibration... However, I could write the abstract already: #+srcname: paper_for_star_fleet_physics_journal #+begin_src LaTeX \begin{abstract} the new set-up shows a $#:measurement perf#,/%$ better perfomance then the old warp drive... \end{abstract} #+end_src The inline code blocks will not be processed inside source blocks. I'm not sure how to achieve what you want with the current machinery, but have you read the recent posts by Thomas Dye describing how he uses latex blocks with org-babel? In particular you should look at the noweb reference expansions. These are also documented on the Worg page. In general of course, the more you can write in org rather than latex, the more functionality you'll get out of org-babel. Is it possible write the abstract in org and defer export to latex? ... I hope this gives an idea of what I like to do. :) Export should allow selections like export all (including comment texts and source code blocks), export without source code blocks and export results only. The last one would produce the native LaTeX code ready for submission. This would allow to process the file with any standard LaTeX environment. The Worg page says , | exports |
[Orgmode] Quotation marks in links in LaTeX export
Dear all, I found an apparent minor bug with links containing quotation marks in LaTeX export. If the first character in the name of a link is a quotation mark, it is converted to a closing mark rather than an opening mark. For example: , | * test | | [[http://www.google.com][hello;]] | [[http://www.google.com][two; quotes]] ` This produces: , | \href{http://www.google.com}{''hello''} | \href{http://www.google.com}{''two'' ``quotes''} ` I am using org-mode 6.32 with Emacs 23.1 on Mac OS X. Thank you, Brenton Kenkel ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode