From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#66994: 30.0.50; Emacs hangs in Todo mode when moving an item to another todo file Date: Thu, 09 Nov 2023 00:23:54 +0100 Message-ID: <87msvnq16d.fsf@rub.de> References: <877cmt17j3.fsf@gmx.net> <83r0l01lca.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66994@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 00:24:38 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r0ruY-0008am-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 00:24:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0ruL-0008Di-Jn; Wed, 08 Nov 2023 18:24:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0ruJ-0008DK-QP for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 18:24:23 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0ruJ-0007un-IV for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 18:24:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0ruw-0000JC-3C for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 18:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Nov 2023 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66994 X-GNU-PR-Package: emacs Original-Received: via spool by 66994-submit@debbugs.gnu.org id=B66994.16994858861156 (code B ref 66994); Wed, 08 Nov 2023 23:25:02 +0000 Original-Received: (at 66994) by debbugs.gnu.org; 8 Nov 2023 23:24:46 +0000 Original-Received: from localhost ([127.0.0.1]:46442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0rug-0000IZ-16 for submit@debbugs.gnu.org; Wed, 08 Nov 2023 18:24:46 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:41595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0ruZ-0000IE-RV for 66994@debbugs.gnu.org; Wed, 08 Nov 2023 18:24:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1699485835; x=1700090635; i=stephen.berman@gmx.net; bh=Zn3Okh/+UGGdLimaGriJliiwIW08lheIsQdpwzrnDcc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=WcMSWbmTudMQaGUBp5ldAQWwRrE+GQ0mOs0bSGhN/cgTt4Ao8oHKBb1VUozPU8cj Z125uRqKa6wL8Nq9yUps2bcKNvRtZUvmCwf2dPnEq8xGSDUAXAlEi4LAOYkHoW1xw c3JrqR0pNs0dYgMNcz/M9Njl43rVd4O+rTI+ujbyPMMgd3tqyPfRrFBaHzFleG3Fc v2RGylWl0DGO1C6sDags11bLefVFsTtobWsXJLMnLb4YVkYdut4eBSeCba1bG3bOB KH7ZOK7hwt+rzC1gWOjfvWlVfaCldPrGC9kPlvxUv7H8CAxa6HZ/syIUN/YthXL7O P/H2oMpW/bBiS+hLCw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs2 ([89.246.36.229]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MiJVG-1re2fs3YD0-00fNwz; Thu, 09 Nov 2023 00:23:54 +0100 In-Reply-To: <83r0l01lca.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Nov 2023 14:27:33 +0200") X-Provags-ID: V03:K1:i4FfndDSxjDiWSbmwG+SnXR8xhNOOZKMvGn33xVP9Gi3mImtf58 3abYiW0oml8ZWWALHoZejlb5alziVds64tWtcxRkeUr36y/aBTZXlOcyNU8I2CS8S6nkMQ8 5tqQo+odkYLpjG7R/1UPsVTnafWYqKVCvzTHtl4IU7dzkaBuRL7ByyXOaLLQHPC78FFcCfx YDWW2xm+/OxR6KlO99Nbw== UI-OutboundReport: notjunk:1;M01:P0:LK61AFQ7ZCc=;AqQazwilGdAH4fSdxl6pDQiP2W2 hLK4Q7uey+xQnaOTqVeY8Z5y2oVw4avj8QDOk/FYZ8nZlaZGukQ1wrrqNKGzWoK7++xBaiwh/ q3DbAkb85PDvhAwk5k3K54pd7Bw7mP3QuS3skU5rWYNKrAF8aY/VvA4CjOaYtPwsBc0usNi90 we32/dNXPEqeCM3d21Vh1MB15vI0F/nassUiI7nca4QJqrmRG8ZiEXfC7YbZmHhTcZiMd0sEu RzeOs8h/zC4U6O2cQ3Rs7tRb+2vjqKNCSoIL+ddJKb2c7unOoJVsieu9qi2EBMYqbLQO0Ouzm FtU42/YMWirJD8Xw3NnPAO1Sm6b0NHekaGxtMOnYyujK2LROQuN1lOiDsGzyz6PSZCKPFacMl plSxDqdbjKZ3rb0CI4lSfgINkgG5L/K4pgNPuE8f2Cf3eCYmpP2ata6i1FKDsA3KLa3lm2U1j Al0QSsGCb6k4H026ZaZUogE9leXn7jQ2OmUPD3q8PcIXliXJMfkSsNr8wn9ANwkgInSV8NIKA SuovzcOu8xWk4xLd0d8gG3rnf6sWSeb3sgSpIhGCQ2VellOMlI1D0DcqbcK83LkQmKB2uhOf0 ydFg5v4Bh1xNG2I3az40mJHfE6SsNGzpjNpE3XVbupyZaFhhwwYgRmIyBi8Fqcvy7HrrFIReW /TcxaTiDQv+OD8E7Q0Ui8QCY7f/EFBtFXGGtJxJ7OOtGMdkyWHdUv5fOEoUqLxOeDOSr8xnGC UPirvO25kbsgcTegswhUbMEyHwDaB9YIbWKC+Tv/IdJ/usfFpV5re7jx1ZonRRZB94Psof1C X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274024 Archived-At: On Wed, 08 Nov 2023 14:27:33 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Date: Wed, 08 Nov 2023 00:13:36 +0100 >> >> Given that it's an old bug that has apparently never been triggered in >> normal use of todo-mode, I have no problem committing the fix to master= . >> But since an infinite loop is always nasty and the fix is >> straightforward and AFAICT safe, I think it's suitable for the release >> branch. I'll wait for the maintainers' decision. > > I'm okay with installing this on the emacs-29 branch, but please > improve the comment to the line you added, so that it explains better > why this condition is needed and how it is related to "C-u m": Done. >> - (looking-at (regexp-quote todo-category-beg))) >> + (looking-at (regexp-quote todo-category-beg)) >> + ;; With `C-u m' to a file that is then loaded into a buffer= . >> + (=3D (point) 1)) > > Also, should this test point-min instead of literally 1? No, the infinite loop happens when point is at the start of the file. Todo mode uses narrowing to display categories, and in that case the problem does not arise, because then point-min is the location of the start of the first item in the category. Fixed in commit b7871cefe7b to emacs-29. Thanks. Steve Berman