Re: [Orgmode] Re: LaTeX Export $s
--- Mar 10/2/09, Rasmus Pank Roulund rasmus.p...@gmail.com ha scritto: Sorry for the late reply. This is regarind a bug in LaTeX export. The trouble seems to happen when autofill is used. It might be caused by something else. I am not sure. The thing is that Org sometimes misintpretate $ as the currency symbolar rather than math as in LaTeX-lingu. IMO the use of $ as a currency symbol should be optional. hi, Rasmus, you should use \( \) for a well-exported math environment and not $ ;-) as stated in the maual: 11.3 LaTeX fragments Text within the usual LaTeX math delimiters. To avoid conflicts with currency specifications, single `$' characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the `$' characters with no whitespace in between, and if the closing `$' is followed by whitespace, punctuation or a dash. For the other delimiters, there is no such restriction, so when in doubt, use `\(...\)' as inline math delimiters. Giovanni Passa a Yahoo! Mail. La webmail che ti offre GRATIS spazio illimitato, antispam e messenger integrato. http://it.mail..yahoo.com/ ___ 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] grouped undo
On Feb 11, 2009, at 8:01 AM, Nicholas Sandow wrote: Hi, I've noticed that in org-mode, undo undoes one character at a time. Normally in Emacs, undo is done in chunks. To quote from the manual: Usually each editing command makes a separate entry in the undo records, but some commands such as `query-replace' divide their changes into multiple entries for flexibility in undoing. Meanwhile, self-inserting characters are usually grouped to make undoing less tedious. So to undo a sentence that you've typed in, only a few undos are required. In org-mode, though, it seems self-inserting characters aren't grouped, and my undos are thus more tedious. Is this a feature or a bug? I like the grouped undo feature. Hi Nicolas, good observation. The reason for this is that Org binds all characters to a function different from self-insert-command, which the the one arranging for the special undo behavior. Maybe it is possible to fix this, by adding a property to the command or so, but I am not aware of a solution. - Carsten In outline mode, the undo is still grouped, so it seems this is an undo-specific thing. I am running version 6.22b Thanks, 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 ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: On Tue, Feb 10, 2009 at 2:42 PM, Carsten Dominik wrote: On Feb 10, 2009, at 9:46 AM, Manish wrote: On Tue, Feb 10, 2009 at 8:44 AM, Tom Breton (Tehom) wrote: [...] OK, I've add comments, keywords, and some docstrings I forgot to org-choose.el, and I wrote a standalone doc. Both are attached. This is very intriguing functionality. I tried to follow your and Casten's earlier exchanges but could understand only a little. So I tried to follow your tutorial but I am getting stuck at switching the `choosenness' of items. I get following error when I try to switch to any state from no state. Once I assign a state by typing it out manually (as opposed to using state switching commands), I can then switch between states but the error repeats when I try to switch to MAYBE state. , | save-excursion: Symbol's function definition is void: outline-up-heading-all ` Hmm, not sure if I messed up there - so I fixed this bug. Tom, please check if I did this right. This issue is gone for me. Thanks. So far, my understaning is that only one item can be in YES state. If I try to switch another item to YES then the existing YES will be demoted to MAYBE. So for a two-state choosenness only one item can be in CHOOSE state while all others will switch to NOT_CHOOSEN state.. is that understanding correct? With three choices for choosenness, it works as I expected (only one item in CHOSEN state at a time) but for more choices like: #+CHOOSE_TODO: REJECTED(r) NOT_CHOSEN(n,-) MAYBE(,0) LEANING_TOWARDS(l) CHOSEN(c,+) it allows multiple items to be in CHOSEN state. How do we interpret that? Having fetched and set up 6.22b, I can now reproduce it. This bug is simple. In Setting it all up at the end of org- choose.el, in 6.22b a quote got introduced before progn. That's all. With that quote, it evaluated a quoted form and did nothing. I'd send a patch, but ISTM it's easier to just press backspace once. It's here: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, I added the quote because without it, evaluating org-chose.el did error. It was my understanding that such a form has to be quoted. Am I missing something here? - 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 12:19 AM, Tom Breton (Tehom) wrote: Hmm, not sure if I messed up there - so I fixed this bug. Tom, please check if I did this right. - Carsten Hi, Carsten. I just looked at org-6.22b You caught a problem, but I think it's a different bug. I think there are these different things: * What you saw, that it doesn't work at top level. Good catch. My code finds the groups of siblings via their parent. If they have no parent, it doesn't work. Doing that already generated an error deep in the guts of outline, but your way is better. Let's keep your fix. OK * What Manish saw. I can't reproduce this. I could. Your code was calling outline-up-heading-all, which does not exist in the outline.el I have. I replaced it with org-up-heading-all, then the code did work. - 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] HTML export: feature request
On Feb 11, 2009, at 2:41 AM, Sebastian Rose wrote: Wanrong Lin wanrong@gmail.com writes: Hi, One problem I have with current HTML export is the section number (like 1, 2.1, 2.1.2 and etc) is not very distinctive from the actual section heading. Also, sometimes I wish the sub-section headings are indented. So I wonder whether we can add the following features: 1. Assign a CSS class to the section number, so the section number font and color can be customized through CSS That would be great indeed: h2 id=sec-1span class=section-number-21/span Headline/h2 \/ ^ basename| level 2. Add a variable to control whether sub-sections should be indented in the export, and by how much. This is possible through CSS more easy and flexible (different projects, different designs): .outline-2 h2 {} Ahh - Carsten, would it easy to add a new class here? div id=outline-container-1 class=outline-2 h2 id=sec-11 blabla /h2 div class=outline-text-2 id=text-1 ^ Here ---' the We could the indent the text independently from the headline (or add additional indentation to the sections body). The appended patch does both of these. Add a class to the section number, and a class to the container of the sections content. No problem, I have applied you patch, with one change, making the level number consistent even if `org-export-html-toplevel-hlevel' is not 1. - 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] Re: LaTeX Export
On Feb 10, 2009, at 9:46 PM, Rasmus Pank Roulund wrote: Hello, Sorry for the late reply. This is regarind a bug in LaTeX export. The trouble seems to happen when autofill is used. It might be caused by something else. I am not sure. The thing is that Org sometimes misintpretate $ as the currency symbolar rather than math as in LaTeX-lingu. IMO the use of $ as a currency symbol should be optional. Here is an example of the error: Org source: - Funktioner findes ved at sætte funktionen lige en given konstant $k$. Dermed bestemmes indifferentfunktion. Det ses nemt at $u(x_1, x_2)=k$. LaTeX export: \item Funktioner findes ved at sætte funktionen lige en given konstant \$k\$. Dermed bestemmes indifferentfunktion. Det ses nemt at $u(x_1, x_2)=k$. I have pulled the newest revision of Org. The version is 6.22b. Please remove your customization of org-format-latex-options. You can do this by doing M-x customize-variable RET org-format-latex-options RET and then clicking on Erase customizations, then Set for current session, then Save for future sessions. After that, re-make any customizations you want in that variable. Some time ago I added a new matcher $1 for single characters between dollars like in this case. People who have customized this option unfortunately do not get to see it. That said, Giovanni's proposal to use \(\) is excellent advice, at least in cases where using $..$ causes trouble. - 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] Adding HTML into exported files
On Feb 10, 2009, at 8:56 PM, Richard Riley wrote: Carsten Dominik domi...@science.uva.nl writes: On Feb 10, 2009, at 3:05 PM, Richard Riley wrote: Sebastian Rose sebastian_r...@gmx.de writes: This is the cleanest way to do it. #+ATTR_HTML: alt=an image id=mySpecialImmage [[./img/a.jpg] ] and use CSS. I didn't know about this! Should this maybe be documented somewhere other than in the Links section of the manual? (org) Links It is documented here: http://orgmode.org/manual/Links.html#Links Is this not the right place? - Carsten Hi Carsten, I'm not sure. But it seems its also applicable to images. So possibly a mention there or better in general HTML Export section? I could be totally wrong though and am only going on my understanding of Sebastian's advice, I have also added it to the image section. - 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
On Feb 9, 2009, at 4:04 PM, Daniel Clemente wrote: Hi, with org-mode 6.21b and since some versions ago: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- With that file, clock in that task. You will get the drawer written like this: --- * learn the alphabet :CLOCK: CLOCK: [2009-02-09 dl 16:03] CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b :END: - c - d Hi Daniel, this is difficult to avoid, since Org tries to incude clock notes into the drawer, which look like items as well. Here are your options: 1. Leave an empty line after the heading, before you list 2. The most robust may be to use (setq org-clock-into-drawer t) which will create the drawer immediately, already for the first clock entry. HTH - 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] visibility cycling and different behavior of S-TAB and TAB
Hi, running 6.21b and emacs 22.3 and given this outline: * Tasks ** TODO aaa ** TODO bbb *** blablablablbalblablalbl *** yaddayaddayaddatadda Starting with a folded view if I move onto * Tasks and hit TAB I see: * Tasks ** TODO aaa ** TODO bbb but with the same folded view, if I hit S-TAB I see: * Tasks ** TODO aaa ** TODO bbb *** x *** y is that the correct and expected behavior? I would expected to see the exact same thing except that the cycling was happening for all item Vs the one under the cursor. How can I make them behave the same? Bonus question: under * Tasks I have #+CATEGORY: something, is there a way to hide that? Or in more generic words: is there a way to hide properties even when everything is shown? thanks -- Behind every great man there's a great backpack - B. ___ 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
this is difficult to avoid, since Org tries to incude clock notes into the drawer, which look like items as well. They look like normal content except for the indentation. If it were like this, it would be very hard to differentiate: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- However, it is never like that. There's always at least 1 space/tab, like in: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- And thus it's possible to tell where the real content starts: at the first line without indentation. Of course, if the user uses indentation at the first line, they will be considered part of the drawers. Something like this: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- But that would probably be what the user wanted; anyway this is not the usual case. On the other hand, I think the second example is more usual and should work. Thanks, Daniel ___ 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
R: [Orgmode] visibility cycling and different behavior of S-TAB and TAB
--- Mer 11/2/09, Spike Spiegel fsm...@gmail.com ha scritto: running 6.21b and emacs 22.3 and given this outline: * Tasks #+CATEGORY: something ** TODO aaa ** TODO bbb *** blablablablbalblablalbl *** yaddayaddayaddatadda [snip] Or in more generic words: is there a way to hide properties even when everything is shown? * Tasks :PROPERTIES: :CATEGORY: something :END: will give: * Tasks :PROPERTIES: blah blah is it enough? cheers, Giovanni Passa a Yahoo! Mail. La webmail che ti offre GRATIS spazio illimitato, antispam e messenger integrato. http://it.mail..yahoo.com/ ___ 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
On Feb 11, 2009, at 12:09 PM, Daniel Clemente wrote: this is difficult to avoid, since Org tries to incude clock notes into the drawer, which look like items as well. They look like normal content except for the indentation. If it were like this, it would be very hard to differentiate: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- However, it is never like that. There's always at least 1 space/ tab, like in: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- And thus it's possible to tell where the real content starts: at the first line without indentation. Of course, if the user uses indentation at the first line, The true problem here is: I am such a user. :-) - Carsten they will be considered part of the drawers. Something like this: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- But that would probably be what the user wanted; anyway this is not the usual case. On the other hand, I think the second example is more usual and should work. Thanks, Daniel ___ 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
On Wed, Feb 11, 2009 at 5:51 PM, Carsten Dominik wrote: On Feb 11, 2009, at 12:09 PM, Daniel Clemente wrote: this is difficult to avoid, since Org tries to incude clock notes into the drawer, which look like items as well. They look like normal content except for the indentation. If it were like this, it would be very hard to differentiate: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- However, it is never like that. There's always at least 1 space/tab, like in: --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- And thus it's possible to tell where the real content starts: at the first line without indentation. Of course, if the user uses indentation at the first line, The true problem here is: I am such a user. :-) Ditto. :) -- Manish ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: On Tue, Feb 10, 2009 at 2:42 PM, Carsten Dominik wrote: On Feb 10, 2009, at 9:46 AM, Manish wrote: On Tue, Feb 10, 2009 at 8:44 AM, Tom Breton (Tehom) wrote: [...] OK, I've add comments, keywords, and some docstrings I forgot to org-choose.el, and I wrote a standalone doc. Both are attached. This is very intriguing functionality. I tried to follow your and Casten's earlier exchanges but could understand only a little. So I tried to follow your tutorial but I am getting stuck at switching the `choosenness' of items. I get following error when I try to switch to any state from no state. Once I assign a state by typing it out manually (as opposed to using state switching commands), I can then switch between states but the error repeats when I try to switch to MAYBE state. , | save-excursion: Symbol's function definition is void: outline-up-heading-all ` Hmm, not sure if I messed up there - so I fixed this bug. Tom, please check if I did this right. This issue is gone for me. Thanks. So far, my understaning is that only one item can be in YES state. If I try to switch another item to YES then the existing YES will be demoted to MAYBE. So for a two-state choosenness only one item can be in CHOOSE state while all others will switch to NOT_CHOOSEN state.. is that understanding correct? With three choices for choosenness, it works as I expected (only one item in CHOSEN state at a time) but for more choices like: #+CHOOSE_TODO: REJECTED(r) NOT_CHOSEN(n,-) MAYBE(,0) LEANING_TOWARDS(l) CHOSEN(c,+) it allows multiple items to be in CHOSEN state. How do we interpret that? Having fetched and set up 6.22b, I can now reproduce it. This bug is simple. In Setting it all up at the end of org- choose.el, in 6.22b a quote got introduced before progn. That's all. With that quote, it evaluated a quoted form and did nothing. I'd send a patch, but ISTM it's easier to just press backspace once. It's here: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? - 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Of course, if the user uses indentation at the first line, The true problem here is: I am such a user. :-) There are also users who write lists after entries... and the default behaviour is wrong for them. I don't think it's needed to change their habits and force them to write a blank line. I agree that it's difficult because it's not very clear where the metadata section (CLOCK/DEADLINE/SCHEDULE, drawers, …) ends. Maybe it can be made that: a list (of any tipe) at line beginning (no indentation) will break the metadata section and start the content section. -- Daniel --- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] = 1:00 - a - b - c - d --- ___ 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] LaTeX and syntax highlighting
On Feb 2, 2009, at 1:55 PM, Sebastian Rose wrote: Hi all, I just discovered writing LaTeX through OrgMode. It's _really_ great! Only missing thingy is just something like htmlize.el to hihglight code syntax. Currently my codes look like this here: \begin{codeblock} \openbrace \variable{action}: \dqstring{newMap}, \doindent \variable{instance}: INSTANZ\_NAME, \comment{/* Instanzname dieser VMap */} \doindent \variable{x}: INT\_X, \comment{/* X-Wert in Pixeln der gewünschten Zoomstufe */} \doindent \variable{y}: INT\_Y, \comment{/* Y-Wert in Pixeln der gewünschten Zoomstufe */} \doindent \variable{z}: INT\_Z, \comment{/* Gewünschte Zoomstufe */} \doindent \variable{rID}: AKTUELLES\_STANDARD\_HIGHLIGHT, \doindent \variable{type}: TYPE \comment{/* Aktiver Hotel-Typ-Filter */} \closebrace \end{codeblock} In my headers I include my /home/sebastian/develop/lib/latex/code.tex which does all the formating and stuff (uses the `ifthen' package for the indentation stuff) and simply sets some faces and defines the environment `codeblock'. I wonder if it wouldn't be easy to extend htmlize.el to do this formating for me. While this is nice to have, since I can use syntaxhighlighting in headlines this way (document code), I found out about listings.el, which seems to be part of the texlive distibution (at least I can `usepackage' it here without extra installations). See http://www.ctan.org/tex-archive/macros/latex/contrib/listings/listings.pdf It supports refs to linenumbers, supports lots of languages and so on. With the listings package we could convert #+begin_src emacs-lisp ... #+end_src to \begin{lstlisting}[language=Lisp] \dots \end{lstlisting} This is not hard to implement, the biggest obstacle being a list translating Emacs major mode names used for htmlize into the language names used by the listings package. Would you like to make such a list? - 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] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
On Feb 11, 2009, at 2:02 PM, Daniel Clemente wrote: Of course, if the user uses indentation at the first line, The true problem here is: I am such a user. :-) There are also users who write lists after entries... and the default behaviour is wrong for them. I don't think it's needed to change their habits and force them to write a blank line. I agree that it's difficult because it's not very clear where the metadata section (CLOCK/DEADLINE/SCHEDULE, drawers, …) ends. Maybe it can be made that: a list (of any tipe) at line beginning (no indentation) will break the metadata section and start the content section. While I think it is not too much to ask to set the clock drawer variable I mentioned earlier in order to get reliable behavior for your application, I guess it does not hurt to check for smaller indentation than the clock line itself. OK. - 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] Move point to next-line after clocking in
Fixed, thanks. - Carsten On Feb 7, 2009, at 1:17 AM, Daniel Clemente wrote: Hi. Consider a file with 2 lines: -- heading -- Place the cursor at line 2 (where you can type). Then use C-c C-x C- i to start a clock. You have now 3 lines: -- heading CLOCK: [2009-02-07 sáb 01:06] -- However, the cursor is still placed at line 2, like before. I think it would be more useful if it were moved to line 3 so that you can start writing right away, just as before. This saves you the C-n needed to move again to a blank line. I don't know if other actions would also benefit from this, for instanc clocking in for a second time (thus adding a properties block). It's probably not needed. Thanks, Daniel with org 6.20g ___ 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
[Orgmode] Re: org-mode and remind integration
Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d --- org2rem.el.old 2009-01-09 09:00:48.0 + +++ org2rem.el.new 2009-02-11 13:59:16.12000 + @@ -34,13 +34,21 @@ (eval-when-compile (require 'cl)) +(defvar org2rem-pure-timestamps-string ;we need it. + (concat \\( org-deadline-string \\| + org-scheduled-string \\)\\{0\\})) + (defvar org2rem-scheduled-reminders nil) (defvar org2rem-deadline-reminders nil) +(defvar org2rem-pure-timestamps-reminders nil) + (defvar pure-time nil) (defvar org2rem-scheduled-remind-file ~/.reminders.org.scheduled) (defvar org2rem-deadline-remind-file ~/.reminders.org.deadline) +(defvar org2rem-pure-timestamps-remind-file + ~/.reminders.org.pure-timestamps) (defun org2rem-list-reminders (regexp) Make a list of appointments. @@ -95,9 +103,15 @@ (setq rem-task (concat REM rem-time MSG task %) ) - (if (equal regexp org-scheduled-string) - (push rem-task org2rem-scheduled-reminders) - (push rem-task org2rem-deadline-reminders))) + + (cond + ((equal regexp org2rem-pure-timestamps-string) +(push rem-task org2rem-pure-timestamps-reminders)) + ((equal regexp org-scheduled-string) +(push rem-task org2rem-scheduled-reminders)) + ((equal regexp org-deadline-string) +(push rem-task org2rem-deadline-reminders)) + )) (defun org2rem-write-file (file reminders) Write reminders list to files. @@ -116,13 +130,19 @@ (interactive) (setq org2rem-scheduled-reminders nil) (setq org2rem-deadline-reminders nil) + (setq org2rem-pure-timestamps-string nil) (save-window-excursion (org2rem-list-reminders org-scheduled-string) (org2rem-list-reminders org-deadline-string) -(org2rem-write-file ~/.reminders.org.scheduled +(org2rem-list-reminders org2rem-pure-timestamps-string) + +(org2rem-write-file org2rem-scheduled-remind-file ;~/.reminders.org.scheduled org2rem-scheduled-reminders) -(org2rem-write-file ~/.reminders.org.deadline - org2rem-deadline-reminders))) +(org2rem-write-file org2rem-deadline-remind-file ;~/.reminders.org.deadline + org2rem-deadline-reminders) +(org2rem-write-file org2rem-pure-timestamps-remind-file ;~/.reminders.org.pure-timestamps + org2rem-pure-timestamps-reminders) +)) org2remind Description: Binary data show-agenda Description: Binary data ___ 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] Docs submitted
(eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? - Carsten Hi, from [[info:elisp:Anonymous%20Functions]]: We sometimes write `function' instead of `quote' when quoting the name of a function, but this usage is just a sort of comment: (function SYMBOL) == (quote SYMBOL) == 'SYMBOL The read syntax `#'' is a short-hand for using `function'. For example, #'(lambda (x) (* x x)) is equivalent to (function (lambda (x) (* x x))) so #'foo is the same as 'foo but indicates that foo is a function hth, Stephan ___ 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: Docs submitted
Carsten Dominik domi...@science.uva.nl writes: On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? As I understand it (from my book on Common Lisp) #'some-function is used to quote function names. 'some-function quotes a variable. It means Get me the function with the following name - without the #', Lisp would treat some-function as the name of a variable and look up the value of the variable, not the function. -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] Re: Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Carsten Dominik domi...@science.uva.nl writes: Here are your options: 1. Leave an empty line after the heading, before you list 2. The most robust may be to use (setq org-clock-into-drawer t) which will create the drawer immediately, already for the first clock entry. Hi Carsten, I'll change my setting from 2 to this as well. I tried using the customize interface to set this to 't' and it complains that it is expecting an integer. So I set it to 1 which I assume means the same as t in this case (I didn't check the code to prove that though). -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
Re: [Orgmode] Re: org-mode and remind integration
I have not followed this discussion - should I apply this patch to org2rem.el in the distribution? - Carsten On Feb 11, 2009, at 3:23 PM, Sharad Pratap wrote: Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d org2rem.el.patchorg2remindshow- agenda___ 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
[Orgmode] Re: Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Bernt Hansen be...@norang.ca writes: Carsten Dominik domi...@science.uva.nl writes: Here are your options: 1. Leave an empty line after the heading, before you list 2. The most robust may be to use (setq org-clock-into-drawer t) which will create the drawer immediately, already for the first clock entry. Hi Carsten, I'll change my setting from 2 to this as well. I tried using the customize interface to set this to 't' and it complains that it is expecting an integer. So I set it to 1 which I assume means the same as t in this case (I didn't check the code to prove that though). Okay that doesn't work for me I have the following setup for clocking phone calls which are started by a remember template with :CLOCK-IN: in the text of the template ,[ .emacs ] | (add-hook 'remember-mode-hook 'my-start-clock-if-needed 'append) | | (defun my-start-clock-if-needed () | (save-excursion | (goto-char (point-min)) | (when (re-search-forward *:CLOCK-IN: * nil t) | (replace-match ) | (org-clock-in | ` That breaks with org-clock-into-drawer set to 1 with the following error , | org-clock-find-position: Wrong type argument: integer-or-marker-p, nil ` I don't have time to dig into this more right now so I've just reverted back to the default for this variable. -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
Re: [Orgmode] Re: org-mode and remind integration
Hi Carsten, Please do apply it, (if you find it is fine.) I have joined this mailing list today only, so not able to include all peoples in thread. On Wed, Feb 11, 2009 at 8:51 PM, Carsten Dominik domi...@science.uva.nlwrote: I have not followed this discussion - should I apply this patch to org2rem.el in the distribution? - Carsten On Feb 11, 2009, at 3:23 PM, Sharad Pratap wrote: Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
Carsten Dominik domi...@science.uva.nl writes: Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? Since I am always having questions like that, I keep writing here each new notation I find :-) http://www.emacswiki.org/emacs/CategoryGlossary#toc1 -- Daniel ___ 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: R: [Orgmode] visibility cycling and different behavior of S-TAB and TAB
Hi, On Wed, Feb 11, 2009 at 8:18 PM, Giovanni Ridolfi giovanni.rido...@yahoo.it wrote: * Tasks :PROPERTIES: :CATEGORY: something :END: will give: * Tasks :PROPERTIES: blah blah is it enough? I guess it's better or would be better in the presence of several properties, but I can't say it fully address the problem. From my perspective that's metadata and as such it shouldn't be visible when you're dealing with the data, it just gets in the way for no good reason. Without adding a step to the visibility cycling ruining its simplicity and immediacy something along the lines of M-x orgmode-toggle-metadata-visibility could be a nice addition. thanks -- Behind every great man there's a great backpack - B. ___ 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] bug in TBLFM
Hi, everybody, Org-mode version 6.22b GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON I found an unexpected behaviour, a bug ?, in TBLFM (well I've already reported it in http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00252.html but I didn't provide a report clear enough; ah, the importance of proper bug reports ;-) table (from manual): |---+-++++---+--| | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note | |---+-++++---+--| | ! | | P1 | P2 | P3 | Tot | | | # | Maximum | 12 | 15 | 25 | | 52.0 | | ^ | | m1 | m2 | m3 |mt | | |---+-++++---+--| | # | Peter | 10 | 8 | 23 | | 41.0 | | # | Sam | 2 | 4 | 3 | | 9.0 | |---+-++++---+--| | | Average |||| 25.0 | | | ^ | ||||at | | | $ | max=10 |||| | | |---+-++++---+--| #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-i...@-i);%.1f BUG : A column can't be referred with its name, if it is left hand side of a formula. (Please try changing $6 with $Tot in the first formula ) Well I don't know if this is a bug or a constrain in the implementation. This being the case I think it should be documented in the manual in the section (Field formulas) like: The left hand side of a formula may also be a named field, but not a named column cheers, Giovanni Passa a Yahoo! Mail. La webmail che ti offre GRATIS spazio illimitato, antispam e messenger integrato. http://it.mail.yahoo.com/ ___ 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: Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Carsten Dominik domi...@science.uva.nl writes: On Feb 11, 2009, at 4:03 PM, Bernt Hansen wrote: Carsten Dominik domi...@science.uva.nl writes: Here are your options: 1. Leave an empty line after the heading, before you list 2. The most robust may be to use (setq org-clock-into-drawer t) which will create the drawer immediately, already for the first clock entry. Hi Carsten, I'll change my setting from 2 to this as well. I tried using the customize interface to set this to 't' and it complains that it is expecting an integer. So I set it to 1 which I assume means the same as t in this case (I didn't check the code to prove that though). No, 1 is not a valid value, that gives an error. Hmm, it should work as you say... Does now. Anyway, in customize, use Value Menu to select Always, which is the tag representing a t value. WOW you're fast! Okay, disregard my other message about clocking into a remember template automatically - it works great now :) I've set org-clock-into-drawer to 1 and it works great! I'll try setting it to 't' next. Thanks alot! 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
Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
Useful resource! Thanks. - Carsten On Feb 11, 2009, at 4:38 PM, Daniel Clemente wrote: Carsten Dominik domi...@science.uva.nl writes: Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? Since I am always having questions like that, I keep writing here each new notation I find :-) http://www.emacswiki.org/emacs/CategoryGlossary#toc1 -- Daniel ___ 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] Bug: org-cycle on list at the end of buffer
Thanks for your response. Yes, this is a minor annoyance and can be worked around as you did. But maybe it is just a snap for Carsten or others to fix it (seems the case for most of the bugs. Sorry, you guys really raised up our expectations.). I thought if we keep silent, the developers will never know. Also, the point of using org-mode is you won't get as much as attraction as other mouse-driven, window-popping applications. If the number of small annoyances increases, that advantage will decrease rapidly, in my opinion. That's why I seems to be fussy on those small things. Wanrong Eddward DeVilla wrote: On Tue, Feb 10, 2009 at 1:50 PM, Wanrong Lin wanrong@gmail.com wrote: Hi, I have org-cycle-include-plain-lists set to t. In the following example, the text is at the very end of an org-mode buffer. If I put my cursor on the line of item 1 and press TAB key, the cycling does not work. But if I add another list item after item 1, the cycling now works (of course now the item 2 does not work). I am using Emacs 22.3 and org-mode 6.22a. Looks like a bug. Thank you if somebody can look into this. * Test 1. item 1 abc, xyz, whatever I'm seeing this with org 2.20c 22.3.1. I've seen this break and work periodically. I tend to avoid it by having a heading at the bottom of the file like: * Test 1. item 1 abc, xyz, whatever 2. foo bar * baz Most of my real documents have an archive heading at the bottom the completed items get moved to, so I haven't been too annoyed with it recently. I've gathered that org-cycle-include-plain-lists isn't very common. Edd ___ 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: LaTeX Export
Carsten Dominik domi...@science.uva.nl writes: M-x customize-variable RET org-format-latex-options RET and then clicking on Erase customizations, then Set for current session, then Save for future sessions. On my version of Emacs GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-11-09 on raven, modified by Debian if I click on [Save for future sessions] it also sets the current session data. I don't need to click on both. I used to do that but decided one day to figure out if that was really necessary (since I was messing with lots of configuration variables through the customize interface and clicking on both buttons was bugging me :) ) HTH, -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] Re: LaTeX Export
On Feb 11, 2009, at 4:56 PM, Bernt Hansen wrote: Carsten Dominik domi...@science.uva.nl writes: M-x customize-variable RET org-format-latex-options RET and then clicking on Erase customizations, then Set for current session, then Save for future sessions. On my version of Emacs GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-11-09 on raven, modified by Debian if I click on [Save for future sessions] it also sets the current session data. I don't need to click on both. I used to do that but decided one day to figure out if that was really necessary (since I was messing with lots of configuration variables through the customize interface and clicking on both buttons was bugging me :) ) Indeed, this is good to know. - 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] Re: minor option conflict
On Feb 11, 2009, at 7:32 AM, Samuel Wales wrote: ;;very strange. this gets overridden with time? ;;;(setq org-log-done t) (setq org-log-done 'time) Yes, the t value is old and get translated to time on load time. - 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] Re: Docs submitted (really #')
Date: Wed, 11 Feb 2009 09:58:43 -0500 From: Bernt Hansen be...@norang.ca Subject: [Orgmode] Re: Docs submitted To: Carsten Dominik domi...@science.uva.nl Cc: emacs-orgmode@gnu.org, Tom Breton \(Tehom\) te...@panix.com Message-ID: 87fxilggv0@gollum.intra.norang.ca Content-Type: text/plain; charset=us-ascii Carsten Dominik domi...@science.uva.nl writes: On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? As I understand it (from my book on Common Lisp) #'some-function is used to quote function names. 'some-function quotes a variable. It means Get me the function with the following name - without the #', Lisp would treat some-function as the name of a variable and look up the value of the variable, not the function. In Common Lisp, #' is a reader macro that is an abbreviation for function. So #'foo is read as (function foo). I'm not at all sure what #' means in elisp, which is not the same programming language. A quick peek at the Elisp info file didn't find reader macros anywhere in there. AFAIK for defining hooks a symbol will be interpreted as a function name, won't it? So replacing all of the #'s with 's above would work, wouldn't it? Best, r ___ 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] Feature improvement request: state change logging
Hi, My TODO sequence is set up as following: (setq org-todo-keywords '((sequence TODO(t) STARTED(s!) WAITING(w@/!) MAYBE(m/!) DELEGATED(g@/!) DEFERRED(d!/!) HOLD(h!/!) | DONE(x) CANCELED(c The state change logging is great, but I wonder whether we can further improve it: 1. Can we also include the original state in the log message? i.e.: instead of having - State DEFERRED [2009-02-11 Wed 11:38] we can have - State DEFERRED from HOLD [2009-02-11 Wed 11:38] The message will be clearer, and useful even when somebody edited the TODO keyword in place without using the org-todo command (in that case, simply looking at all the destination states in the log message does not give us the right information). 2. Can we put all of those state change history logging messages into a drawer like STATE-HIST (when the drawer is defined in org-drawers), so it is less intrusive in the file? Thank you for giving a thought on it. Wanrong ___ 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] Feature request: HTML export, TODO keyword face
Hi, Right now in the HTML export the TODO keywords have either class=todo, or class=done. That loses all the face properties in the original TODO keywords. I think the TODO keywords faces are important visual aids to differentiate different types of TODO items, so I just wonder whether it is possible to keep the faces in the HTML. Thank you for considering the above. Wanrong ___ 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: Docs submitted
The CL spec is online: http://www.lispworks.com/documentation/HyperSpec/Front/ In emacs lisp: function is a special form in `C source code'. (function arg) Like `quote', but preferred for objects which are functions. In byte compilation, `function' causes its argument to be compiled. `quote' cannot do that. [back] -- -- Myalgic encephalomyelitis denialists are causing massive suffering and 25-years-early death by grossly corrupting science. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] Adding HTML into exported files
At Wed, 11 Feb 2009 02:48:26 +0100, Sebastian Rose wrote: Jan Seeger jan.see...@thenybble.de writes: and C) This is the cleanest way to do it. #+ATTR_HTML: alt=an image id=mySpecialImmage [[./img/a.jpg] ] and use CSS. The problem is that I can't use CSS. I need to modify the HTML to insert an element which forces the outline-2 container to extend all the way down to the end of the image. I do not understand what you mean by 'I can't use CSS'. You mean external stylesheets? Better said as I can't archieve the effect I want using only CSS^^. Regards, Jan ___ 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: minor option conflict
Hi Carsten, To reiterate (since the thread is long): Bug: blank line inserted after log item even without body. This inserts blank line in collapsed view requiring manual deletion. Carsten and Bernt could not reproduce. I provided test case and .emacs to reproduce. I also like Wanrong's idea of putting state changes in drawers to keep syntax separate from the body. -- Myalgic encephalomyelitis denialists are causing massive suffering and 25-years-early death by grossly corrupting science. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? - Carsten Here, it's #' that it of interest, not # alone. At the most direct level, it quotes the symbol with `function' instead of `quote'. For example: (format %s ' 'foo) = (quote foo) (format %s ' #'foo) = (function foo) What it accomplishes: * In some contexts, it is needed to get a symbol's function binding instead of its value binding. * It alerts the byte-compiler that it's seeing a function, so it can perform certain optimizations (I don't know offhand exactly what). * Stylistically, it alerts the reader. It's an imitation of Common Lisp's reader macro #' which does sort of the same thing. At the syntax level, it's really a combination of # which signals a reader macro - though in emacs, it's all hard-coded and inextensible - and ' which stands for the function-quote reader macro. FWIW, what I added to lread.c was an extension of the reader macro facility at RMS' request, so you definitely asked the right guy. Tom Breton (Tehom) ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: This bug is simple. In Setting it all up at the end of org- choose.el, in 6.22b a quote got introduced before progn. That's all. With that quote, it evaluated a quoted form and did nothing. I'd send a patch, but ISTM it's easier to just press backspace once. It's here: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, I added the quote because without it, evaluating org-chose.el did error. It was my understanding that such a form has to be quoted. Am I missing something here? What error did it give? I didn't get one here. Definitely the form should not be quoted. Quoted, it does nothing. Demonstration (with libary `simple' which is fairly basic in emacs so probably loaded for everyone): (let* ((x 1)) (eval-after-load 'simple (setq x 2)) x) = 2 (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) x) = 1 Tom Breton (Tehom) ___ 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: org-mode and remind integration
Thanks Sharap, Since my child was born last month I did not have much time. Therefore, I did not test org2rem. I did not tested the last suggestion of Carsten but you seem to overcome the problem I encountered. I am also suggest to include this patch to expand Bastien original org2rem.el Whenever I have time (to sleep!) I will test your scripts. Daniel 2009/2/11 Carsten Dominik domi...@science.uva.nl Hi Bastien, you wrote the original org2rem.el Do you agree we should apply this patch? I have not tested it as I do not use remind. - Carsten On Feb 11, 2009, at 4:33 PM, Sharad Pratap wrote: Hi Carsten, Please do apply it, (if you find it is fine.) I have joined this mailing list today only, so not able to include all peoples in thread. On Wed, Feb 11, 2009 at 8:51 PM, Carsten Dominik domi...@science.uva.nlwrote: I have not followed this discussion - should I apply this patch to org2rem.el in the distribution? - Carsten On Feb 11, 2009, at 3:23 PM, Sharad Pratap wrote: Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 10:41 PM, Tom Breton (Tehom) wrote: On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: This bug is simple. In Setting it all up at the end of org- choose.el, in 6.22b a quote got introduced before progn. That's all. With that quote, it evaluated a quoted form and did nothing. I'd send a patch, but ISTM it's easier to just press backspace once. It's here: (eval-after-load 'org '(progn ;;^--HERE. (add-to-list 'org-todo-setup-filter-hook #'org-choose-setup-filter) (add-to-list 'org-todo-get-default-hook #'org-choose-get-default-mark) (add-to-list 'org-trigger-hook #'org-choose-keep-sensible) (add-to-list 'org-todo-interpretation-widgets '(:tag Choose (to record decisions) choose) 'append) )) Hi Tom, I added the quote because without it, evaluating org-chose.el did error. It was my understanding that such a form has to be quoted. Am I missing something here? What error did it give? I didn't get one here. eval: Invalid function: (:tag Sequence (cycling hits every state) sequence) I don't understand it either. Definitely the form should not be quoted. Quoted, it does nothing. Demonstration (with libary `simple' which is fairly basic in emacs so probably loaded for everyone): (let* ((x 1)) (eval-after-load 'simple (setq x 2)) x) = 2 (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) x) = 1 In fact, I am getting 2 in both cases!??? Do you really get 1 for the second??? eval-after-load is a function, not a macro, so FORM will be evaluated *before* being passed to the function. But the idea, IIUC is, that the form will be added to after-load-alist, and evaluated whenever appropriate. I have a number of eval-after-loads in org.el, each time the form is quotes and does the right thing. - Carsten Tom Breton (Tehom) ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 9:02 PM, Tom Breton (Tehom) wrote: Hi Tom, maybe you can educate me: I have never understood what the # does in code like the one you have here. You are using it, so maybe you know? - Carsten Here, it's #' that it of interest, not # alone. At the most direct level, it quotes the symbol with `function' instead of `quote'. For example: (format %s ' 'foo) = (quote foo) (format %s ' #'foo) = (function foo) What it accomplishes: * In some contexts, it is needed to get a symbol's function binding instead of its value binding. * It alerts the byte-compiler that it's seeing a function, so it can perform certain optimizations (I don't know offhand exactly what). * Stylistically, it alerts the reader. OK, thanks a lot! It's an imitation of Common Lisp's reader macro #' which does sort of the same thing. At the syntax level, it's really a combination of # which signals a reader macro - though in emacs, it's all hard-coded and inextensible - and ' which stands for the function-quote reader macro. FWIW, what I added to lread.c was an extension of the reader macro facility at RMS' request, so you definitely asked the right guy. :-) Thanks for the explanations. Tom Breton (Tehom) ___ 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] Bug: org-cycle on list at the end of buffer
I'm not calling fussy. I just meant to say I've seen it break repeatedly. If more people use the feature then it will probably be better maintained. That's great! I've just changed my behaviour such that I don't notice it any more. I didn't mean to make it sound like you shouldn't bring it up. Sorry. Edd On Wed, Feb 11, 2009 at 9:51 AM, Wanrong Lin wanrong@gmail.com wrote: Thanks for your response. Yes, this is a minor annoyance and can be worked around as you did. But maybe it is just a snap for Carsten or others to fix it (seems the case for most of the bugs. Sorry, you guys really raised up our expectations.). I thought if we keep silent, the developers will never know. Also, the point of using org-mode is you won't get as much as attraction as other mouse-driven, window-popping applications. If the number of small annoyances increases, that advantage will decrease rapidly, in my opinion. That's why I seems to be fussy on those small things. Wanrong Eddward DeVilla wrote: On Tue, Feb 10, 2009 at 1:50 PM, Wanrong Lin wanrong@gmail.com wrote: Hi, I have org-cycle-include-plain-lists set to t. In the following example, the text is at the very end of an org-mode buffer. If I put my cursor on the line of item 1 and press TAB key, the cycling does not work. But if I add another list item after item 1, the cycling now works (of course now the item 2 does not work). I am using Emacs 22.3 and org-mode 6.22a. Looks like a bug. Thank you if somebody can look into this. * Test 1. item 1 abc, xyz, whatever I'm seeing this with org 2.20c 22.3.1. I've seen this break and work periodically. I tend to avoid it by having a heading at the bottom of the file like: * Test 1. item 1 abc, xyz, whatever 2. foo bar * baz Most of my real documents have an archive heading at the bottom the completed items get moved to, so I haven't been too annoyed with it recently. I've gathered that org-cycle-include-plain-lists isn't very common. Edd ___ 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] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
nicholas.do...@hp.com wrote: Tom Breton (Tehom) te...@panix.com wrote: (let* ((x 1)) (eval-after-load 'simple (setq x 2)) x) =3D 2 (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) x) =3D 1 Are you sure about this? My understanding of this differs from yours: This is definitely a Boy is my face red moment. You are completely correct. I had misunderstood `eval-after-load' as a macro. Upon looking at subr.el, it is obvious that you are right and I am wrong. Thank you for pointing all that out. eval-after-load is an ordinary function (not a special form), and function evaluation in most LISPs (elisp in particular) evaluates arguments before the function is called on them. So if you give it an unquoted form, the form will be evaluated *before* eval-after-load gets its hands on it. That seems to me to defeat the purpose. I'd think that the thing to do is to give the quoted form as argument, then function evaluation evaluates the argument (i.e. unquotes the quoted form, giving back the form) which is then passed to eval-after-load for action. The semantics of eval-after-load imply that (depending on whether the library is already loaded or not) the form may be evaluated once. It is then squirrelled away and if the library is ever loaded again, it is evaluated (perhaps for the first time, perhaps for the nth), *after* the library is loaded. And I think your demonstration is misleading: after doing the eval-after-load, you need to reload simple to trigger the after-load evaluation, otherwise eval-after-load reduces to just plain eval (in this particular case, since simple is, as you point out, already loaded - things would be different if you had chosen some obscure library that is not already loaded): (let* ((x 1)) (eval-after-load 'simple (setq x 2)) (load-library simple) x) 2 (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) (load-library simple) x) 2 In the first case, (setq x 2) was evaluated, x was set to 2 and 2 was passed into eval-after-load. Assuming that simple is already loaded, the 2 is evaluated: the result is 2 and it is just thrown away. After the library is loaded again, 2 is evaluated again and the result is 2 and it just thrown away. Since x was set to 2 before, the value of x is 2. In the second case, (quote (setq x 2)) is evaluated, so the form (setq x 2) is passed to eval-after-load. Assuming that simple is already loaded, the form is evaluated, setting x to 2 and giving a result of 2 (which is thrown away). After the library is loaded, (setq x 2) is eval'led again, setting x to 2 again, and giving a result of 2 (which is thrown away). In both cases, the value of x (and therefore the value the let* form returns) is 2. But it seems to me that the second case is the useful one. Perhaps the most telling evidence that the quote should be there however is the following: if you look at eval-after-load instances in the emacs lisp directory, you'll see that the second argument in all of them is quoted or at least (when partial evaluation is required) backquoted -- although I guess one could argue that they all originated by copying a badly constructed precursor - the programming version of original sin!-) Regards, 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
Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: (let* ((x 1)) (eval-after-load 'simple (setq x 2)) x) = 2 (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) x) = 1 In fact, I am getting 2 in both cases!??? Do you really get 1 for the second??? Yes I do, but it's clear now that I was mistaken about why. On closer inspection, it has to do with emacs not recognizing 'simple because it wants to see simple instead (string instead of symbol). ;;As symbol (let* ((x 1)) (eval-after-load 'simple '(setq x 2)) x) = 1 ;;As string (let* ((x 1)) (eval-after-load simple '(setq x 2)) x) = 2 Not sure why it's different for you. I suspect it may have to do with a difference between the emacs version I use and later versions. eval-after-load is a function, not a macro, so FORM will be evaluated *before* being passed to the function. [] Yes, I see that now. Tom Breton (Tehom) ___ 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] Call for documentation of contributed packages
If you are the author of one of the contributed packages, and if you are planning to follow my call and write a documentation file fo Worg, please write a quick note to Philip Rooke p...@yax.org.uk so that he will not waste time extracting docs from your package. Thanks! - Carsten On Feb 10, 2009, at 8:55 AM, Carsten Dominik wrote: Hi, I have started a new directory in Worg which will contain documentation for the contributed packages that are living in Org's contrib/ directory. These packages are currently not documented in the Org-mode manual, and the documentation in the Lisp files themselves is relative hard to access for people looking for interesting ideas and solutions that might be found among these packages. It seems to me that the best way to improve this would be to put documentation for these packages on the web. Worg now contains a directory org-contrib with an index page listing the available pages, with a brief description of what the package is about. Right now, there is only one item, the documentation Tom Breton wrote for org-choose.el. So this is a call for authors of contributed packages to document their package here. To start up this process, I am looking for a volunteer, with the following task: Go through the file commentaries of stuff in Org's contrib directory and extract information from the file commentaries to create a page for each of these packages. Making a start in this way would be great, and package authors and users could then improve on this with time. Anyone??? Once this is done, I will replace the Extensions section in the manual with a link to the Worg pages, which will then be a much better way to browse and find packages. Thanks - 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 ___ 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