[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Distinguish planner-create-task-from-info called fr
[emacs-wiki-discuss] Distinguish planner-create-task-from-info called from planner-cyclic.el and planner-create-task-from-buffer?
Fri, 21 Jan 2005 17:18:16 +0800
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (berkeley-unix)
Sorry if this goes duplicate. I sent it yesterday and didn't see it on
the list, so resend.
I'm trying to add an interactive function to
planner-create-task-hook. But I'm afraid it will be troublesome when
creating tasks from cyclic tasks.
So my question is: How can I distinguish planner-create-task-from-info
called from planner-cyclic.el and planner-create-task-from-buffer?
AFAICS, interactive-p or (interactive "p") might not be a good idea
cause my function is buried deeply in the calling tree.
If the current code can't, I can think off two approach: defadvice
planner-create-task-from-buffer, or add a
planner-create-task-from-buffer-hook. I think the later will get
cleaner code. How about we add this hook?