[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2169: [Orgmode] TODO progress regression in org-mode in Emacs pretes
bug#2169: [Orgmode] TODO progress regression in org-mode in Emacs pretest
Mon, 2 Feb 2009 22:04:37 +0100
I have fixed this bug and checked the changes into Emacs CVS, so they
should be part of the next pretest.
Thank you for the report!
On Feb 2, 2009, at 7:31 PM, Michael Ekstrand wrote:
I upgraded this morning from an Emacs CVS build from Jan 28 or 19 to
pretest release, and noticed a regression or undocumented change with
respect to org-after-todo-statistics-hook. I am using the org-mode
which is included in the pretest distribution.
I have a function based on the code in section 5.5 of the Org manual
close projects when their subtasks are complete. Now, if I have a
headline which does not have a subtask counter in it and toggle one of
its children to DONE, my org-after-todo-statistics-hook function gets
called with n-done and n-not-done values of 0. The parent headline
has its TODO status changed.
I don't think it matters too much, as my code worked before, but my
function is `org-summary-todo' from the following. The first case of
the cond is being activated.
(defun mde-org-entry-is-project-p ()
"Query whether the current headline is a project, returning
non-`nil' if it is and `nil' otherwise."
(member "PROJECT" (org-get-tags-at)))
;;; Taken from Org Mode manual chapter 5.5
(defun org-summary-todo (n-done n-not-done)
"Switch entry to DONE when all subentries are done, to TODO
(let ((org-log-done nil)
((and (or (org-entry-is-todo-p)
(= n-not-done 0))
;; Entry is a project that is marked done
(> n-not-done 0))
;; Entry is a task
((and (not (mde-org-entry-is-project-p))
(> n-not-done 0))
There is a small chance that the problem was actually introduced a bit
earlier, perhaps since my Jan 20 build, but I think I would have
it after at least the Jan 28 build.
I have CC'd bug-gnu-emacs to get this in as a bug report there as
mouse, n: A device for pointing at the xterm in which you want to
Confused by the strange files? I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.