From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Buglet with scheduled in TODO lists Date: Thu, 22 Feb 2007 08:19:27 +0100 Message-ID: <0d74887dd2f5bf60f40d4ff5ae728560@science.uva.nl> References: <1172088240.7461.9.camel@bertrand.carcosa.net> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HK8Ej-0002OP-RX for emacs-orgmode@gnu.org; Thu, 22 Feb 2007 02:19:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HK8Ei-0002O9-CH for emacs-orgmode@gnu.org; Thu, 22 Feb 2007 02:19:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HK8Ei-0002O6-6E for emacs-orgmode@gnu.org; Thu, 22 Feb 2007 02:19:28 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HK8Eh-0002Ba-RC for emacs-orgmode@gnu.org; Thu, 22 Feb 2007 02:19:28 -0500 In-Reply-To: <1172088240.7461.9.camel@bertrand.carcosa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jason F. McBrayer" Cc: emacs-orgmode@gnu.org 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 > SCHEDULED line. 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) (indent-relative) (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 > tracking. > > Example: > > **** 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 jmcbray@carcosa.net | > | 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 > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477