Re: [Orgmode] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Carsten Dominik domi...@science.uva.nl writes: 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. Thanks, this makes the default configuration (with that variable unset) work better. ___ 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
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
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] 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] 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
[Orgmode] Bug in clocking in: the list becomes corrupted by the CLOCK drawer
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 --- Regards, 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