From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#27609: 26.0.50; Todo-mode bugs with hidden headers, etc. Date: Fri, 07 Jul 2017 15:29:57 +0200 Message-ID: <87d19cjrxm.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499434700 29497 195.159.176.226 (7 Jul 2017 13:38:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2017 13:38:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 07 15:38:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTSX-0007Na-OS for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jul 2017 15:38:13 +0200 Original-Received: from localhost ([::1]:56650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTTSd-0003Wz-6Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jul 2017 09:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTTLe-00071q-Hs for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTTLa-00041n-Il for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTTLa-00041N-Ef for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTTLa-00008e-9G for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jul 2017 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1499434217462 (code B ref -1); Fri, 07 Jul 2017 13:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2017 13:30:17 +0000 Original-Received: from localhost ([127.0.0.1]:55877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTKr-00007O-7n for submit@debbugs.gnu.org; Fri, 07 Jul 2017 09:30:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTKq-00007B-3o for submit@debbugs.gnu.org; Fri, 07 Jul 2017 09:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTTKg-0003OV-R5 for submit@debbugs.gnu.org; Fri, 07 Jul 2017 09:30:10 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTTKg-0003OP-OG for submit@debbugs.gnu.org; Fri, 07 Jul 2017 09:30:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTTKf-0006AA-D6 for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTTKb-0003LB-ES for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:30:05 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50104) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTTKb-0003KI-3b for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 09:30:01 -0400 Original-Received: from rosalinde ([83.135.19.4]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MQ2zr-1dOGf71bMp-005HIu for ; Fri, 07 Jul 2017 15:29:58 +0200 X-Provags-ID: V03:K0:oR1bFx3nxHBXRtHpQchg4EpZS6szNpKgC2dO1qpTpOvAaCW/Ezu 9Vtdp6glmREjOqGNDOuzOK0c7bndkmiS/CScjSXH0cUrqjXqXUA9vEcrc2+3LhzxXF7QcKM FLoqpd2d1GkXsbsEEmwkHUnvuApY7wDZMHhTZ5GSHVSrLdp6J9ZKnr1LjjQGXSjR7uMRt0s UFoUPnOkU3i0lbtoPsgpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Tp+0LWNl3tA=:lCLbRaJw4BDLWZ/1asekKx n44xEhSI/ixvGqaQ83nQljrIdCDECeAhAE3AK/B84KmhxPKFNeZHm/2uXOXbT7HxoDu2jkdBG gC437K/KT5HN5FLkjQrVxP3mwbpPr59gJJtpbUCCnXXyyGZEy/EhuGT3R5Qxlmow2Vz4eiDWn zbvTogOOcaHDsWEcfQYqOB1fD65WKvydl9YUf5hErX8kcTWMdOOImCbKqI6KzBWoJ5Vhz5p/7 XXvUbDUF/CTEuXDs3z706IK42egMcoB+AMNPaRJh8Vsm5OerUwNwFzQ5KVWXm5cLvBz866DjT IRvPYv/ApmpstAf78hIVjZPmPrJ0C0Z/ejULk7XhGwZ9G34pbw8DyrCYDphYzHyCazkdK6PMb RgPBWNYn6bM265oShTnI7+3QixYKbEul1RB+FOUQNURIm/D6xO37E5fX6ybF0Xr80Kw6/5vFQ ZQot86W0aKjbzJOaIA9NaeBztRpeihEGjKwJK0t4n+6dicu41PTpz1gJf1illQyxRx0Ql8YfL LBWOYoNUHxJE3M84uGMImb2AwPCvlAFMVtI2xhArG9uDC0z5NEfUdHJzvVhrO7rS7RkWjS6qV hsrSaYAh3PN8jns2NCFoY7dP2yEDR6o89Jaj7x0Unps4mtJnFuvbzoLwIXlySSNp+7eiUJenR u1Puef9TguvUgul6WGOa9IQ4hTdLri6xLK015xOO3zTX72l0Vm7rF9D6gHM1jwRy3d1AS2xSl 7nxjLn5x/boRfANDhtOWIEgd0NiySTGUkNF0boQsO8ITRrQei8FzF68sVR50gxTfLpX80BCl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134304 Archived-At: I found several bugs involving todo-mode hidden item date-time headers, and in the course of debugging these found several other unrelated bugs. I've fixed all of these and, being the maintainer of todo-mode.el, I will push the fixes to master, together with accompanying tests I've written. This bug report is for reference, so I'll just list the bugs without providing recipes to reproduce them (the tests more or less embody recipes). These are the bugs related to hidden headers: - With date-time headers hidden (by typing `h' todo-toggle-item-header), relocating an item by changing its priority (`r', `l', `#'), moving it to another category (`m'), the done items section (`d') or archive (`A d'), undoing or unarchiving it (`u')) results in its date-time header being shown. - With date-time headers hidden, if a new item is inserted, its date-time header is not hidden. - With date-time headers hidden, `h' in an empty category fails to show the headers (but when the headers are shown, `h' in an empty category hides them). - When date-time headers are hidden, typing `p' (todo-previous-item) moves point to the end of the item two items higher; it should move to the beginning of the next higher item. And with item highlighting also enabled (by typing `H'), after `p' the item below point is highlighted: that's the correct item but it appears to be incorrect, since point is incorrectly not on that item. These are the unrelated bugs: - Typing `C *' (todo-mark-category) corrupts an internal data structure, resulting in incorrect item counts (shown by typing `F c' to display the table of categories in the file). Also, when there are no todo items in the category and the done items are shown, typing `C *' raises a wrong-type-argument error. - Typing `*' to mark an item and then `m' to move it to a preceding category results in an infinite loop. - Typing `r' (todo-raise-item-priority) or `l' (todo-lower-item-priority) on a done item or an empty line raises a wrong-type-argument error; they should be noops. - Typing `u' (todo-unarchive-items) on an archived item to restore it as a done item in its category puts point on the done items separator instead of on the restored item. - Typing `g' (todo-revert-buffer) puts point at (point-max) and makes the category buffer writable; point should stay put and the category should be read-only. Steve Berman In GNU Emacs 26.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.22.8) of 2017-07-07 built on rosalinde Repository revision: 579a9ee22e0decf7bed8aff1751c5b3d147b921f