[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Buglet with scheduled in TODO lists

From: Carsten Dominik
Subject: Re: [Orgmode] Buglet with scheduled in TODO lists
Date: Thu, 22 Feb 2007 08:19:27 +0100

On Feb 21, 2007, at 21:04, Jason F. McBrayer wrote:

I have org-agenda-todo-ignore-scheduled set to t.  One behaviour I have
noticed is that scheduled TODO items will still show up in TODO-type
agenda buffers if there is something in between the headline and the

There are really two bugs here.  The first is that the clocking info
get between the headline and the scheduling line - this should not
happen.  Here is the patch - if you apply it,
also go through the file and push the SCHEDULED/DEADLINE stuff back
to right after the headline.

--- org.el.orig Thu Feb 22 08:15:21 2007
+++ org.el      Thu Feb 22 08:15:32 2007
@@ -12459,7 +12459,9 @@
       (beginning-of-line 2)
       (when (and (looking-at (concat "[ \t]*" org-keyword-time-regexp))
                 (not (equal (match-string 1) org-clock-string)))
-       (beginning-of-line 1))
+       ;; First line hast scheduling info, move one further
+       (beginning-of-line 2)
+       (or (bolp) (newline)))
       (insert "\n") (backward-char 1)
       (insert org-clock-string " ")

The second bug is that yes, indeed, the scheduling line could/should also
be found further down.  I can fix that too, but there are also other
places where the code assumes (I believe) that this info is always in
the second line.  I am not yet sure if I will change this.

- Carsten

  This can happen very easily if one is using time


**** NEXTACTION Weekly Review REPEAT(+1w)
     CLOCK: [2007-02-20 Tue 08:30]--[2007-02-20 Tue 08:50] =>  0:20
     CLOCK: [2007-02-13 Tue 08:30]--[2007-02-13 Tue 09:03] =>  0:33
     CLOCK: [2007-02-05 Mon 13:30]--[2007-02-05 Mon 14:29] =>  0:59
     SCHEDULED: <2007-02-26 Mon 08:30>

Weekly review appears in my list of Next Actions, and I expect that it
shouldn't. If I move the SCHEDULED line to right below the headline, it
doesn't appear in my list, which I believe is the correct behaviour.

| Jason F. McBrayer                    address@hidden  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada    |

Emacs-orgmode mailing list

Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

reply via email to

[Prev in Thread] Current Thread [Next in Thread]