[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Planner.el: Page Templates
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: Planner.el: Page Templates |
Date: |
Wed, 30 Mar 2005 12:03:08 +0800 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Tyler Weir <address@hidden> writes:
> Killer!
> Thanks Sandra. I'll try these things and find out how they work.
> Having something that prompts for the next action would be cool.
Wish, command... =)
Here's a basic implementation that always prompts for the next task if
you have a plan page associated with the task you just marked done. It
works for both classic single-plan tasks as well as planner-multi.
(defadvice planner-task-done (after tyler activate)
"Prompt for the next task in this project. Use C-g to cancel."
(let ((plan (planner-task-plan (planner-current-task-info)))
task-description)
(when plan
(setq task-description
(read-string
(format "Next action in %s: " plan)))
(unless (string= task-description "")
(planner-create-task-from-info (planner-current-task-info)
nil nil "_" task-description
nil (planner-today))))))
We can tweak this further if you can think of a way you'd like to do
things.
By the way, most people call me Sacha. "Sandra Jean Chua" is really
just for the copyright statements. =)
--
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83