From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66994: 30.0.50; Emacs hangs in Todo mode when moving an item to another todo file Date: Wed, 08 Nov 2023 14:27:33 +0200 Message-ID: <83r0l01lca.fsf@gnu.org> References: <877cmt17j3.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66994@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 08 13:28:43 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 1r0hfm-0000jy-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Nov 2023 13:28:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0hfW-0008Uh-AV; Wed, 08 Nov 2023 07:28:26 -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 1r0hfV-0008Sp-2l for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 07:28:25 -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 1r0hfT-0005uQ-HZ for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 07:28:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0hg6-0002Gs-1q for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 07:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Nov 2023 12:29: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.16994465108689 (code B ref 66994); Wed, 08 Nov 2023 12:29:02 +0000 Original-Received: (at 66994) by debbugs.gnu.org; 8 Nov 2023 12:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:44151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0hfa-0002G5-1o for submit@debbugs.gnu.org; Wed, 08 Nov 2023 07:28:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0hfX-0002Fn-L7 for 66994@debbugs.gnu.org; Wed, 08 Nov 2023 07:28:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0hep-0005lL-DC; Wed, 08 Nov 2023 07:27:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ICHhWKgN5A5rInx29JzmboLmxcbzuemGhJl2pKyHO6Y=; b=Wimb4DF5gNWn 5iFUi5MmURsGptLIAY6tkwTAkA0F1K3hszeBWPWAyLedlAHzmKD05mFJ6H4N6FR05P2zQiFONkZL1 UVtp8g8Tcc8Y+hqlOnJwAoIgJYVXvy2DalwnGhHvNaeiWxSbToZcAEQPAgyFEKmZjfJVHPNusRm6b gNQxk2Msh/YruqkJH4tJCo2sFulW65R+dmTrEVhHdUsf4LwFOKkqoWOMZtNScQasx58or9I1kgUBD bS/oh5Gd0T93BsveqPgqK9dY3+8IGNsJNn5mddPDBfmBsCzw8NvlFtOZccGCcSQiatIx03NpJ4mzL X8FXLsl6ULy63PoXy1JuOg==; In-Reply-To: <877cmt17j3.fsf@gmx.net> (message from Stephen Berman on Wed, 08 Nov 2023 00:13:36 +0100) 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:273978 Archived-At: > 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": > - (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. > + (= (point) 1)) Also, should this test point-min instead of literally 1? Thanks.