[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Changing date of a task
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: Changing date of a task |
Date: |
Tue, 09 Aug 2005 10:17:54 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Flatman <address@hidden> writes:
> | any particular day, though (nice for reflecting and writing reports),
> | so I C-c C-c it to today (".") before I mark it completed. (Actually,
> | now I have code that does that automatically...)
> Could you be so kind to make it public ? I'd really like this ;-)
;;;_+ Auto-schedule tasks onto today before marking them as done
(defun sacha/planner-track-finished-tasks (old-status new-status)
"Automatically reschedule tasks onto today before marking them as done.
Add this to `planner-mark-task-hook'."
(when (string= new-status "X")
(let ((info (planner-current-task-info)))
(planner-copy-or-move-task (planner-today) t)
(when (string-match planner-date-regexp (planner-page-name))
(planner-find-file (planner-today))
(planner-find-task info)))))
(add-hook 'planner-mark-task-hook 'sacha/planner-track-finished-tasks)
--
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, juggling
sachac on irc.freenode.net#emacs . YM: sachachua83
[emacs-wiki-discuss] Re: Changing date of a task, Sacha Chua, 2005/08/08