From unknown Tue Sep 09 17:38:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2167 <2167@debbugs.gnu.org> To: bug#2167 <2167@debbugs.gnu.org> Subject: Status: TODO progress regression in org-mode in Emacs pretest Reply-To: bug#2167 <2167@debbugs.gnu.org> Date: Wed, 10 Sep 2025 00:38:20 +0000 retitle 2167 TODO progress regression in org-mode in Emacs pretest reassign 2167 emacs,org-mode submitter 2167 Michael Ekstrand severity 2167 normal thanks From michael@elehack.net Mon Feb 2 10:32:01 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Feb 2009 18:32:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n12IVvpb023164 for ; Mon, 2 Feb 2009 10:31:59 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU3aP-0002lD-Ex for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 13:31:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU3aN-0002ky-PL for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 13:31:57 -0500 Received: from [199.232.76.173] (port=50759 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU3aN-0002kv-NT for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 13:31:55 -0500 Received: from elehack.net ([216.243.177.100]:64210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LU3aN-0005e6-6k for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 13:31:55 -0500 Received: from bezalel (bezalel.elehack.net [172.29.37.2]) by ahijah.elehack.net (Postfix) with ESMTP id 7F0A42E190 for ; Mon, 2 Feb 2009 12:31:53 -0600 (CST) Received: by bezalel (Postfix, from userid 1000) id 2D3EB380AD; Mon, 2 Feb 2009 12:31:53 -0600 (CST) From: Michael Ekstrand Newsgroups: gmane.emacs.orgmode Cc: bug-gnu-emacs@gnu.org Subject: TODO progress regression in org-mode in Emacs pretest Date: Mon, 02 Feb 2009 12:31:34 -0600 Message-ID: <87fxiwlmgp.fsf@elehack.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:h6FkpZzSM427Sra3fWnwQIzn7qY= MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) --=-=-= Content-Transfer-Encoding: quoted-printable 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)) (=3D 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. =2D Michael =2D-=20 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 . --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmHPBEACgkQJMBfXHjb5YUM4ACdF5CiLOULCvKuLTY79pLpY/DB oRYAoJQnG2E6pbVMeEsad/kKaTB69u85 =+DvD -----END PGP SIGNATURE----- --=-=-=-- From rgm@gnu.org Mon Feb 2 14:35:38 2009 Received: (at control) by emacsbugs.donarmstrong.com; 2 Feb 2009 22:35:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n12MZZd6019610 for ; Mon, 2 Feb 2009 14:35:37 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LU7MT-0001JT-4j; Mon, 02 Feb 2009 17:33:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18823.29901.97069.704406@fencepost.gnu.org> Date: Mon, 2 Feb 2009 17:33:49 -0500 From: Glenn Morris To: control Subject: control message X-Debbugs-No-Ack: yes merge 2168 2172 reassign 2128 emacs,w32 reassign 2171 spam reassign 2170 spam reassign 2167 emacs,org-mode reassign 2166 spam reassign 2165 emacs,rmail reassign 2164 emacs,rmail reassign 2162 emacs,emacs-www reassign 2158 emacs,rmail merge 2158 2156 From rgm@gnu.org Mon Feb 2 15:36:50 2009 Received: (at control) by emacsbugs.donarmstrong.com; 2 Feb 2009 23:36:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n12NalTw002258 for ; Mon, 2 Feb 2009 15:36:48 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LU8Jg-00032K-OT; Mon, 02 Feb 2009 18:35:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18823.33572.703006.102797@fencepost.gnu.org> Date: Mon, 2 Feb 2009 18:35:00 -0500 From: Glenn Morris To: control Subject: control message reassign 2169 emacs,org-mode forcemerge 2169 2167 close 2109 From unknown Tue Sep 09 17:38:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Mar 2009 15:24:06 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator