From unknown Fri Jun 20 07:21:07 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#32343 <32343@debbugs.gnu.org> To: bug#32343 <32343@debbugs.gnu.org> Subject: Status: 27.0.50; Todo mode bugs involving done items separator Reply-To: bug#32343 <32343@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:21:07 +0000 retitle 32343 27.0.50; Todo mode bugs involving done items separator reassign 32343 emacs submitter 32343 Stephen Berman severity 32343 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 01 08:30:26 2018 Received: (at submit) by debbugs.gnu.org; 1 Aug 2018 12:30:26 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 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 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/KwLGa4vEspBJ74zptKR 4jGLC7E 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 08 06:09:39 2018 Received: (at 32343-done) by debbugs.gnu.org; 8 Aug 2018 10:09:39 +0000 Received: from localhost ([127.0.0.1]:44214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fnLPP-0002Cl-8S for submit@debbugs.gnu.org; Wed, 08 Aug 2018 06:09:39 -0400 Received: from mout.gmx.net ([212.227.17.21]:36225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fnLPN-0002CX-Gz for 32343-done@debbugs.gnu.org; Wed, 08 Aug 2018 06:09:37 -0400 Received: from rosalinde ([178.1.120.74]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lb5Tp-1gBis62EZ7-00kiY2 for <32343-done@debbugs.gnu.org>; Wed, 08 Aug 2018 12:09:31 +0200 From: Stephen Berman To: 32343-done@debbugs.gnu.org Subject: Re: bug#32343: Acknowledgement (27.0.50; Todo mode bugs involving done items separator) References: <87ftzyz2uv.fsf@gmx.net> Date: Wed, 08 Aug 2018 12:09:30 +0200 In-Reply-To: (GNU bug Tracking System's message of "Wed, 01 Aug 2018 12:31:02 +0000") Message-ID: <87h8k5dvad.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mWGjVD8TSfqKDf5Nrh0Gyq6Z2gOc2QI9FF6aHTxpMO7PeYzM1sk CrmZPXXRzdUqD0fmsVYyeSp5I1AWmKl+6nz5hPVd1+83qE8XWHCKwwBz9zO/F2VvWN3DFTG WqeuRDomzk1NwuEwpyo8NTj+OdFEtB6IICqZ68Am+pML1dVkGX9Wf9cobqMF3npXM5czhhc 2Ksovhq/6S+6O5WH6yX/g== X-UI-Out-Filterresults: notjunk:1;V01:K0:34WM2wO0EkY=:ZT7dPdzj4I1tmbAajhJrnr 8eOK+bzsmM1Ggk9Rlnm5+ewadAJGpudK1R63Qi/p9duwmtZKS5dalUKtWsPm0B3k3U1pQ3GrV nLxyp56Vz4MPcKvKHFUiW4MknrNAIGKQnQCMH1z4NIjoDtN2HJ0XTa83n+k/cyRWiJJOZZgx0 hFQh35ZYC4d8J62skZKNKPAB68bNKEhTOTWfG0O4q8uPK/Jq6ShUb3mOXjX38iVhxtVnT7cna FR2cl0fxXB4hrVM7m4rlJIsK6PZ4sZVK24418VD5dZhu27JcaZN92DLSp/4WZ/5AtWWmeM47D 6jZMDIW8aBjnxirhU+zAsRPpYsaG5WQT56q70W9Nwyy9S/X/Zwc3H8558YwCq9qRAJt6qpbQw oEIdLyPli4n9XzhZJ2GykOaUKlxLcni3k9kebHcSY1ugnGkQH2NO83LuF49RJ04uepE5NmB53 1C6YoWNgsBLg5jEzgRjmnYsIBiJfU2WfutNgjhmb6Y086F0lf+G91uYMi1fCXqCZb0WG/k3pM bY33xUWMSbnjUJ9lhvEKRe9zCAzFsR8BmG9/5jHCqdGHT4uZ3Sbaf9PFNAH0GrNaZmN54JTf2 KxT2GVRY64VX0vx+NhKWQrC12EaBcd0IgYvx4mUod2BLnN4vAK9DSsdKMuHCj37VIkvhdnOra oo5eoA0lM+K4luOZXrARABR2l0FKsdJeceqkHbo+XK15TT+/oyXrKY6M1yOd2/ts8PG6NoSR+ ueCcK7JU+rS9j71YSQwtQUG7MJB+HLyJ6Tug2kWu//zB1c0m5+PJje6uBVBUxjQ+AMncWc4mB YiiHcuo991Dh+hY1fHZ3T67vx83tWL1/eQxIUEVjz7fAWG+hZrjLARImfv9Ed9h3/ShTr8m X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32343-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Closing. From unknown Fri Jun 20 07:21:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Sep 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator