From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LdBeth Newsgroups: gmane.emacs.bugs Subject: bug#66395: 28.2; Todo-mode locks up when trying to edit an entry Date: Sat, 07 Oct 2023 14:37:00 -0500 Message-ID: References: <871qe6ntf4.fsf@ndegruchy-wlt> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sat_Oct__7_14:37:00_2023-1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31682"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-apple-darwin20.6.0) MULE/6.0 (HANACHIRUSATO) Cc: 66395@debbugs.gnu.org To: nathan@degruchy.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 07 21:38:11 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 1qpD7q-00082F-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 21:38:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpD7Q-0006IO-JA; Sat, 07 Oct 2023 15:37:44 -0400 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 1qpD7O-0006I9-JW for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 15:37:42 -0400 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 1qpD7O-0006lt-BE for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 15:37:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpD7h-00049C-SK for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 15:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: LdBeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66395 X-GNU-PR-Package: emacs Original-Received: via spool by 66395-submit@debbugs.gnu.org id=B66395.169670746315904 (code B ref 66395); Sat, 07 Oct 2023 19:38:01 +0000 Original-Received: (at 66395) by debbugs.gnu.org; 7 Oct 2023 19:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:55966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpD7P-00048Q-D5 for submit@debbugs.gnu.org; Sat, 07 Oct 2023 15:37:43 -0400 Original-Received: from out203-205-221-245.mail.qq.com ([203.205.221.245]:60321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpD7L-000484-F6 for 66395@debbugs.gnu.org; Sat, 07 Oct 2023 15:37:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1696707425; bh=+JrzENdnRS13eKfQPSF2yMfRtusmKQu/rVqsORr6T1A=; h=Date:From:To:Cc:Subject:In-Reply-To; b=RvZZxCYuECyzhTUCMyHtbmnG+zb45okMDZ5lQtFkh1DpRBo2HBwKsRn03WtKOknKt SSyOE5hH3QM0i1FvG0ceGnr6BqZV2gGA3lpOLUpYqigDo08Sf7t0ge+KgFPMPUfb/D Ze9jXxjP2fcP8mRrShBCcOY16XTnhPck8l2rOAkI= Original-Received: from 172-12-5-160.lightspeed.sgnwmi.sbcglobal.net ([68.117.253.195]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id 941B7CB9; Sun, 08 Oct 2023 03:37:01 +0800 X-QQ-mid: xmsmtpt1696707421t80icmdh1 X-QQ-XMAILINFO: OJV4F5WcWfWaV6apOa+mQ/0p2wHicvxPkxC3N19bfDhUI6O82gRZt4eIrNPo1L WHeg+Q2gTYwMb7OzYoLe5hrf9CySbR0j/j2eA6eg2HrsDKSs2aLyyha8udDaxt99bNGQi4a7HqAW G4b8Y1QR8HDwMn29XjdBIv9lWGRoz2s1fsv9GURGvaJccC+mSNaZD+uPlSUyugghxYw1cXnNxOLP +A9M4w+Jd60A9AZL/gE3SXSOAlV+A5N1X03l6hwgdYOOr91ETi99K9C10MVuSPt6BEt/hqH2LnQd mNl0P25cp/yL16Yzenh62sA7jek+blKnju3lVeIZa7SuknArCA73H1hD5hklxOtk7n7K4A5D4Wwh ly/G4VBHrSdGn144i622lqOxrSzWn/Y5NuQyZSy5ABJ7TAkpE8ZVsBjExK3y+Lb7JphnrQNiYE/y KkbRzjrRMr17fd7WwXPxDzb6/v9LdR+hv12bocsmUaFbwTzf8V/CKlfFliBs/kv7g262MIkKs50i kNAxyFt6CTIZ2XBqj03KEbdqcg/N4Gg7sjeqyiovnSqcVjCEGjfY1CrsJdo7OAB7Ry/PmMrNh9W+ UQJ3cv7dJCkSRWN2HoDG5fHyIRxxB0tx2Ur+WtrG85AhvjCx6a0Uz1uq5IhCCNpcLMRohKhG5csM /vlgzsgt8nNObpL/MDWm56Fe+bVH1ZOfA//uIDRQVnE7AnZE93RdsHVET1hU4bzFoTRdJSWvykxI qcwhR2gESbFVn/5L32dLtYuaIm529K4DyyG8wkQsQ+NiZ8g0oiQFnZ9n3SFtQy1eqoD31txD39up S0fetbTyN/Xkv1tYjx+ygw7E79uMdqUc1u7frVRB X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= Original-Received: by 172-12-5-160.lightspeed.sgnwmi.sbcglobal.net (Postfix, from userid 501) id E62102059B219C; Sat, 7 Oct 2023 14:37:00 -0500 (CDT) X-OQ-MSGID: X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb In-Reply-To: 871qe6ntf4.fsf@ndegruchy-wlt 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:272046 Archived-At: --Multipart_Sat_Oct__7_14:37:00_2023-1 Content-Type: text/plain; charset=US-ASCII As we have discussed on IRC, the nonstandard timestamp format is the cause. The hang is cause by the while loop `todo-item-start' not properly handle fail case, however. This patch would at least fix the hang. --- LdBeth --Multipart_Sat_Oct__7_14:37:00_2023-1 Content-Type: text/plain; charset=US-ASCII; name="patch.txt" Content-Disposition: inline; filename="patch.txt" Content-Transfer-Encoding: 7bit --- todo-mode.el.old 2023-10-07 14:28:59.000000000 -0500 +++ todo-mode.el 2023-10-07 14:30:20.000000000 -0500 @@ -5242,8 +5242,8 @@ ;; Buffer is widened. (looking-at (regexp-quote todo-category-beg))) (goto-char (line-beginning-position)) - (while (not (looking-at todo-item-start)) - (forward-line -1)) + (while (and (not (looking-at todo-item-start)) + (= (forward-line -1) 0))) (point))) (defun todo-item-end () --Multipart_Sat_Oct__7_14:37:00_2023-1--