[EMAIL PROTECTED] (J. David Boyd) writes:

> I'm using the latest dev file off of sacha's website.  (It had a date of JUL
> 18 on it).

http://sacha.free.net.ph/notebook/emacs/sacha-dev.tar.gz ? Anyway,
it's at Aug 2 now, but no significant changes to the behavior of
planner-deadline (yet).

> If I do a planner-deadline-change from a date page, then save the file, it
> reverts to the deadline that is on the task page.

Let's try that without the call to planner-update-task.

(defun planner-deadline-change (date)
  "Change the deadline of current task to DATE.
If DATE is nil, remove deadline."
  (interactive (list (planner-read-date)))
  (let* ((info (planner-current-task-info))
         (description (planner-task-description info)))
    (when (string-match (concat "\\s-*" planner-deadline-regexp) description)
      (setq description (replace-match "" t t description)))
    (if date
        (planner-edit-task-description (concat description
                                               " {{Deadline: "
                                               date
                                               "}}"))
      (planner-edit-task-description description)))
  (run-hooks 'planner-deadline-change-hook))

-- 
Sacha Chua <[EMAIL PROTECTED]> - 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 mailing list
emacs-wiki-discuss@nongnu.org
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss

Reply via email to