* org-clock-find-position confusion (bug?)
@ 2008-09-28 3:49 Ethan Blanton
2008-09-28 5:16 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Ethan Blanton @ 2008-09-28 3:49 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1265 bytes --]
Thanks for taking care of my last issue so quickly; as a reward, I've
found another one! ;-) (Seriously, thanks for the blazing turn
around last time -- and thanks for org-mode, I'm finding a lot of
things to love!)
org-clock-find-position (6.07b again) displays unexpected behavior
when it encounters a clock line preceding a bulleted list.
Specifically, when a :CLOCK: drawer is created, the drawer encompasses
the first list item. E.g.:
* Heading
CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] => 0:30
- Bullet 1
- Bullet 2
Clocking in on this item again will yield (if drawer creation is
enabled):
* Heading
:CLOCK:
CLOCK: [2008-09-27 Sat 15:00]
CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] => 0:30
- Bullet 1
:END:
- Bullet 2
Looking at org-clock-find-position, this seems to be intentional;
removing the (if (org-at-item-p) (org-end-of-item)) statement "fixes"
this behavior for me, but may be breaking something else which I am
not seeing.
Ethan
--
The laws that forbid the carrying of arms are laws [that have no remedy
for evils]. They disarm only those who are neither inclined nor
determined to commit crimes.
-- Cesare Beccaria, "On Crimes and Punishments", 1764
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-clock-find-position confusion (bug?)
2008-09-28 3:49 org-clock-find-position confusion (bug?) Ethan Blanton
@ 2008-09-28 5:16 ` Carsten Dominik
2008-09-28 13:22 ` Ethan Blanton
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2008-09-28 5:16 UTC (permalink / raw)
To: Ethan Blanton; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2039 bytes --]
Hi Ethan,
On Sep 28, 2008, at 5:49 AM, Ethan Blanton wrote:
> Thanks for taking care of my last issue so quickly; as a reward, I've
> found another one! ;-) (Seriously, thanks for the blazing turn
> around last time -- and thanks for org-mode, I'm finding a lot of
> things to love!)
>
> org-clock-find-position (6.07b again) displays unexpected behavior
> when it encounters a clock line preceding a bulleted list.
> Specifically, when a :CLOCK: drawer is created, the drawer encompasses
> the first list item. E.g.:
>
> * Heading
> CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] => 0:30
> - Bullet 1
> - Bullet 2
>
> Clocking in on this item again will yield (if drawer creation is
> enabled):
>
> * Heading
> :CLOCK:
> CLOCK: [2008-09-27 Sat 15:00]
> CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] => 0:30
> - Bullet 1
> :END:
> - Bullet 2
>
The reason for this behavior is that Org sometimes records a note when
the clock is stopped in an item. That note is formatted like an item
and attached directly to the CLOCK line. When a drawer is created,
this note should go into the drawer.
A work-around would be to leave an empty line before your list, like so:
* Heading
- bullet 1
- bullet 2
If you then clock this entry, Org will know that "bullet 1" is not a
clocking note.
HTH
- Carsten
> Looking at org-clock-find-position, this seems to be intentional;
> removing the (if (org-at-item-p) (org-end-of-item)) statement "fixes"
> this behavior for me, but may be breaking something else which I am
> not seeing.
>
> Ethan
>
> --
> The laws that forbid the carrying of arms are laws [that have no
> remedy
> for evils]. They disarm only those who are neither inclined nor
> determined to commit crimes.
> -- Cesare Beccaria, "On Crimes and Punishments", 1764
> _______________________________________________
> 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
[-- Attachment #1.2: Type: text/html, Size: 2841 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-clock-find-position confusion (bug?)
2008-09-28 5:16 ` Carsten Dominik
@ 2008-09-28 13:22 ` Ethan Blanton
0 siblings, 0 replies; 3+ messages in thread
From: Ethan Blanton @ 2008-09-28 13:22 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 936 bytes --]
Carsten Dominik spake unto us the following wisdom:
>> org-clock-find-position (6.07b again) displays unexpected behavior
>> when it encounters a clock line preceding a bulleted list.
>> Specifically, when a :CLOCK: drawer is created, the drawer encompasses
>> the first list item. E.g.:
[snip]
> The reason for this behavior is that Org sometimes records a note when
> the clock is stopped in an item. That note is formatted like an item
> and attached directly to the CLOCK line. When a drawer is created, this
> note should go into the drawer.
>
> A work-around would be to leave an empty line before your list, like so:
That is imminently reasonable ... thanks. :-)
Ethan
--
The laws that forbid the carrying of arms are laws [that have no remedy
for evils]. They disarm only those who are neither inclined nor
determined to commit crimes.
-- Cesare Beccaria, "On Crimes and Punishments", 1764
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-28 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 3:49 org-clock-find-position confusion (bug?) Ethan Blanton
2008-09-28 5:16 ` Carsten Dominik
2008-09-28 13:22 ` Ethan Blanton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.