GNU bug report logs -
#2167
TODO progress regression in org-mode in Emacs pretest
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2167 in the body.
You can then email your comments to 2167 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2167
; Package
emacs
.
(Mon, 02 Feb 2009 18:40:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Ekstrand <michael <at> elehack.net>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Feb 2009 18:40:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
I upgraded this morning from an Emacs CVS build from Jan 28 or 19 to the
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 to
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 thus
has its TODO status changed.
I don't think it matters too much, as my code worked before, but my hook
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 otherwise."
(let ((org-log-done nil)
(org-log-states nil))
(cond
((and (or (org-entry-is-todo-p)
(mde-org-entry-is-project-p))
(= n-not-done 0))
(org-todo
(if (mde-org-entry-is-project-p)
"FINISHED"
"DONE")))
;; Entry is a project that is marked done
((and (mde-org-entry-is-project-p)
(not (org-entry-is-todo-p))
(org-get-todo-state)
(> n-not-done 0))
(org-todo 'none))
;; Entry is a task
((and (not (mde-org-entry-is-project-p))
(not (org-entry-is-todo-p))
(org-get-todo-state)
(> n-not-done 0))
(org-todo (org-get-todo-sequence-head))))))
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 noticed
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 well.
- Michael
--
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files? I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.
[Message part 2 (application/pgp-signature, inline)]
bug reassigned from package `emacs' to `emacs,org-mode'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 02 Feb 2009 22:45:06 GMT)
Full text and
rfc822 format available.
Forcibly Merged 2167 2169.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 02 Feb 2009 23:45:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Tue, 03 Mar 2009 15:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 194 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.