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

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

[emacs-wiki-discuss] Re: planner-save-buffers backtrace


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: planner-save-buffers backtrace
Date: Sun, 19 Jun 2005 22:53:12 +0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Jody Klymak <address@hidden> writes:

> planner-save-buffers now gives me the backtrace below.  Any idea whats up?

Hmmm, planner-id is triggering an infinite loop here.

Could you try

(defun planner-id-update-tasks-on-page (&optional force)
  "Update all tasks on this page.
Completed or cancelled tasks are not updated. This can be added
to `write-file-functions' (CVS Emacs) or `write-file-hooks'.
If FORCE is non-nil, completed and cancelled tasks are also updated."
  (interactive (list current-prefix-arg))
  (with-planner-update-setup
   (goto-char (point-min))
   (while (re-search-forward
           (concat
            (if force
                planner-task-regexp
              planner-live-task-regexp)
            "\\(.*?\\){{Tasks:[0-9]+}}")
           nil t)
     (planner-update-task)
     ;; Force the next line to be considered even if
     ;; planner-multi-update-task kicked in.
     (forward-line 1)))
  nil)

That _should_ prevent each planner-update-task from thrashing the
buffers, although you might still get a loop...

Workaround is to disable planner-id temporarily and use M-x
planner-edit-task-description when you need to change a task...

-- 
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




reply via email to

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