emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: planner-multi question


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: planner-multi question
Date: Tue, 22 Nov 2005 22:23:34 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Paul Lussier <address@hidden> writes:

> returns).  As a result, unless I manually change the link list to not
> have today's day page link as the first one, I clock time against a
> project of today's page, which is not at all what I want :)

Hiya, Paul!

planner-multi and planner-timeclock try to keep dates out of ~/.timelog.
So a task like

#C o Test planner-multi clocking for multiple tasks ([[2005.11.22]] [[planner]] 
[[TaskPool]])

should get logged as

i 2005/11/22 22:19:15 [[planner]] [[TaskPool]]: Test planner-multi clocking for 
multiple tasks

and then planner-timeclock should use planner-task-plan to pick up
just the first plan page. planner-task-plan skips dates, anyway.

If you want to put date links at the end, this patch seems to do the
right thing.

--- orig/planner-multi.el
+++ mod/planner-multi.el
@@ -307,7 +307,7 @@
          date) ; Pages from page-name
     ;; Add dates back to the list of pages
     (setq date (planner-task-date info))
-    (when date (add-to-list 'pages date))
+    (when date (add-to-list 'pages date t))
     (unless pages
       (error "Cannot replan this task; it will disappear"))
     (with-planner-update-setup
@@ -458,7 +458,7 @@
                         planner-date-regexp
                         list
                         t))
-            (add-to-list 'list (or date (planner-task-date info)))
+            (add-to-list 'list (or date (planner-task-date info)) t)
             (setq link-text (planner-multi-make-link list)))
           (save-window-excursion
             (while list

Hope that helps!             
-- 
Sacha Chua <address@hidden> - open source, free software geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, public speaking
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

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