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#32343: 27.0.50; Todo mode bugs involving done items separator Date: Wed, 01 Aug 2018 14:30:00 +0200 Message-ID: <87ftzyz2uv.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533126549 5534 195.159.176.226 (1 Aug 2018 12:29:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 12:29:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 32343@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 14:29:05 2018 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 1fkqFU-0001L7-RB for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 14:29:05 +0200 Original-Received: from localhost ([::1]:39597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkqHb-0005dT-F2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 08:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkqHS-0005d3-3K for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkqHO-00049a-Tf for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60256) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkqHO-00049P-OA for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkqHO-0003bT-Hv for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08: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: Wed, 01 Aug 2018 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32343 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.153312662613805 (code B ref -1); Wed, 01 Aug 2018 12:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2018 12:30:26 +0000 Original-Received: from localhost ([127.0.0.1]:37041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkqGo-0003ab-1a for submit@debbugs.gnu.org; Wed, 01 Aug 2018 08:30:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkqGm-0003a9-5u for submit@debbugs.gnu.org; Wed, 01 Aug 2018 08:30:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkqGd-0003iE-SB for submit@debbugs.gnu.org; Wed, 01 Aug 2018 08:30:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fkqGd-0003i6-EF for submit@debbugs.gnu.org; Wed, 01 Aug 2018 08:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkqGX-0005Ph-Bv for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:30:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkqGR-0003eF-GY for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:30:09 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54601) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkqGR-0003d0-6Y for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 08:30:03 -0400 Original-Received: from rosalinde ([84.63.9.49]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LvlWS-1g1G690pg4-017URm for ; Wed, 01 Aug 2018 14:30:01 +0200 X-Provags-ID: V03:K1:bjEgTfejCPmnFJI8c++zrDzrmi6K1Svlmaa6hbGf4gLXpLPGPYV zg35847nZ7CrMebQ56iFHrpC4T6dKw1tpKrtt64tx0WOdtV8j++qbi1W0zmuyaNM32esAnI 6nHvuFVGovV3uyAUVZcdKPmJKdHSq85866s23DIkfbHnx1EoEa3QNEFTuJr+7TVYxbrhrA3 qilF4LhzEQLWpHFBeg/Pg== X-UI-Out-Filterresults: notjunk:1;V01:K0:xMloDXbEeIM=:52999NqUKAPwvglDUUeW27 NDPLpCjgBTcDIrUknJTmHOA/CfMTZjvFGyOGnUDt9HA4H9mK3A/SM1N0y1x17acHTFu+Gj7Gr 3a7/8Qkvx13w7CQWVqSqPiqn87ZhJx1tOPdlWckzijl+CnKlFBDTxIUNqZh/UJyQGCeqSfJHA gRjwg3anZjtRYT+Jqf7u+gHS1MmMU2gKnX/eaFXpi1wAtHd/ePxQlXQPs+AK0Fe6tGsw7u2lD 8lQ6euZhW78Hrs5Nym2Pw8AOE44IccN7spjWthGGT5zWxsQeam6k1HOvJFguaF+R6cciEdA3g WxfLHcuAbt637CjCVbOo8OIgKB6ccHjWJapPHuZ9Mre0wP183fOCianqKlvj7nh/IFOG2pxN3 teUXIHy2z5ha6NMx2wSp3Qa0q3o/FNK/crvcxeGkyeDh36XbxVQnIMiq/8eM40nbmkseA/yi3 sw7VricHMITaWJ0YznFU0KiGuPRoJntwkY20Z6rW/Jf2WGjzxoE572QnC2CwBIaknM6S7NBwu cUUI3sdVT82EobR+jNqHTLmBF0gGF9yCMbrv/H/jB67ItpQf9EU01619yrZRutuMCDG5hQ3cs qIRG6h77i3CCSSYoPJmElc3XVBxU3e9yteoOhKZZ6E4rTMFUJX3uBmf4OpIB3JgaD3uJaBdEM Uj9QXeMVZjnRW9ZywFQxFwE9LN7YsjfP73TRmH8CECmy2cIDenBpwliyAfQT5PEat2vUu0+wn U5FTFVUdqoss9fXumNZg8FSv1JxDZNPGExr3tyyjHkbkrMMCWxfRK/KwLGa4vEspBJ74zptK 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:149164 Archived-At: In todo-mode the done items separator is the divider (displayed as a double line by default) between the todo and done items sections of each todo category; it is not reachable by todo-mode navigation commands, but it is reachable e.g. by C-n and C-p. The current code does not take this possibility into account, and when certain todo-mode commands are invoked with point on the separator, this can lead to the following unexpected results, errors and even file corruption: - When point is at BOL of done items separator, typing `i h' inserts the new item as the penultimate in the category. - When point is on EOL of done items separator, typing `i h' inserts the new item as the first in the category. - When point is at BOL or EOL of done items separator, typing `i p' makes a copy of the last todo item. - When point is on done items separator, typing `e' allows editing the final non-done item. - When point is at BOL or EOL of done items separator, typing `p' moves to the second to last todo item. - When point is at BOL or EOL of done items separator, typing `*' marks or unmarks the last todo item. - When point is at BOL of done items separator, typing `H' (to enable but not to disable item highlighting) or `m', `k', `d', `r' or `#' raises the error "Invalid search bound (wrong side of point)" in todo-item-end; `d', `r' and `#' also move point to EOL. - When point is at EOL of done items separator, typing `m' or `k' highlights the last todo item, the space below it and the done items separator; `d' deletes the last todo item (but the categories sexp show one less todo and one more done item) as well as the done items separator and raises the error "Category %s is missing todo-category-done string" in todo-category-select; `r' raises and `#' reprioritizes last item but both delete done items separator. - When item highlighting is enabled and the done items section is visible, then while repeating C-n or the down arrow, the item highlighting stops as soon as point moves to the line displaying the done items separator: Error in post-command-hook (hl-line-highlight): (error "Invalid search bound (wrong side of point)"); and 'H' must be pressed twice to restore item highlighting. I have fixes for these bugs and will commit them and tests to master; this bug report is for reference in the commit message. In GNU Emacs 27.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.22.28) of 2018-08-01 built on rosalinde Repository revision: cabe9e5126bfed05643d595589031cce8a404255 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Linux From Scratch