From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Nathan R. DeGruchy" Newsgroups: gmane.emacs.bugs Subject: bug#66395: 28.2; Todo-mode locks up when trying to edit an entry Date: Sat, 7 Oct 2023 23:20:51 +0000 Message-ID: <8734ym6mul.fsf@ndegruchy-wlt> References: <871qe6ntf4.fsf@ndegruchy-wlt> <877cnyazsd.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23652"; mail-complaints-to="usenet@ciao.gmane.io" Cc: LdBeth , "66395@debbugs.gnu.org" <66395@debbugs.gnu.org> To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 08 01:22:07 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 1qpGcY-0005u2-OB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Oct 2023 01:22:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpGcC-0003TF-VH; Sat, 07 Oct 2023 19:21: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 1qpGcA-0003T7-P4 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 19:21: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 1qpGcA-0004rG-Gt for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 19:21:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpGcT-0003d9-QB for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 19:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Nathan R. DeGruchy" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 23:22: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.169672088313680 (code B ref 66395); Sat, 07 Oct 2023 23:22:01 +0000 Original-Received: (at 66395) by debbugs.gnu.org; 7 Oct 2023 23:21:23 +0000 Original-Received: from localhost ([127.0.0.1]:56054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpGbq-0003YR-Sd for submit@debbugs.gnu.org; Sat, 07 Oct 2023 19:21:23 -0400 Original-Received: from mail-bn7nam10on2094.outbound.protection.outlook.com ([40.107.92.94]:45761 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpGbo-0003Xb-6A for 66395@debbugs.gnu.org; Sat, 07 Oct 2023 19:21:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b7bYbo/2CvYlgHHsHFGT5mPOfwoiFgHBneAvSQdGhe5c+fEPWOKZaOI6qenfh32qPPfXj88XK+3l1HXsESUnwNrZ2NIwjyGm5WlQkjpf7GJBVXujqkGQnJSvDvWtxJ34hZyuwvhwH1EjYvte84nwG23Q9EEpHpjuMetXFmmoTCDwWUNDjTvglm4aaPIdGHQ9kpTkcBWEUAiKkrAdxkz3e49vUzIvrQuqK299yzqLnQKa99OJrFTngvuarilL3L4mtLC6+v5aFgwiqPPCeDZqMSYhJfPKl6Ub40XUqFVsrIZ5V61yqE1ekb+13nBQRsD+ENyMeKAf1r11dx7UBt9IqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Uhqe6fwNP+IOCvgNwQw5CmFGjhdsXVc3hmwQqf6Uurw=; b=Jt+xGgQHr7ei3NqS8G5PENg265+j0tAgIL1Q+AAS3vf8QVEjM0rYZLToGKOOoq3t7I0/tQz8c4PHKsv5K4kym7ScOObxPQ8t0QQVmCFoJrvpgZ722W9J9ezhNSItj01vKFTk66tWMOH1S4B+37F6yuYTEIEF8LR2qkOy/O2u+lW1WgHoxukonB8gF2lnhedVBaIcAubtrRwsNnQSaAAR8uuUPuHbyfhI4K8CQbgIi03cVrSI7qtwvQaa3Mhzm/mGnMtbLiksxVVf6YZG6b/neytSLL2G4k8yMusWJIdPwFbC9XutJHOoKOYYBbSEeMd+dNFeDi2B3wqnVSqn8rxeAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=degruchy.org; dmarc=pass action=none header.from=degruchy.org; dkim=pass header.d=degruchy.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=degruchy.onmicrosoft.com; s=selector2-degruchy-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uhqe6fwNP+IOCvgNwQw5CmFGjhdsXVc3hmwQqf6Uurw=; b=ggTccNsVXKcwsNEWVKcO92ewg2171zb942W2dyMr98RfG7taibywy7XtdpwKG+g0dWBgdoTfPUEfs7LaOTI2VrCCrQmDbohhqngTOW2YeDJ6JVH9vboeDhZ/LyU9VVdPW6uedb4U8vktswzCT7Op4DIiIPf5Ki8Wb9Z4tO0YAkE= Original-Received: from CH3PR08MB9687.namprd08.prod.outlook.com (2603:10b6:610:1c3::20) by CO1PR08MB7112.namprd08.prod.outlook.com (2603:10b6:303:f4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.36; Sat, 7 Oct 2023 23:20:52 +0000 Original-Received: from CH3PR08MB9687.namprd08.prod.outlook.com ([fe80::bf42:1393:db54:1b13]) by CH3PR08MB9687.namprd08.prod.outlook.com ([fe80::bf42:1393:db54:1b13%4]) with mapi id 15.20.6838.040; Sat, 7 Oct 2023 23:20:51 +0000 Thread-Topic: bug#66395: 28.2; Todo-mode locks up when trying to edit an entry Thread-Index: AQHZ+VFwsczxhADvL0ydgUZMVrqKFrA+16DegAAfjgA= In-Reply-To: <877cnyazsd.fsf@gmx.net> Accept-Language: en-US Content-Language: en-US authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=degruchy.org; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR08MB9687:EE_|CO1PR08MB7112:EE_ x-ms-office365-filtering-correlation-id: 4ca85cf8-0aaf-4102-213a-08dbc78c0c36 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bCj4bQs/KjDhioXkSPHZ5Pd/u/3N4gy08ZUhVI9nFh5I1Pvgpu0aN8cgNBH0QNtjIYLLYmC4stPV8WHYmk05a8Gys3W3b6i1FG6OF5m+QZn+6HSVN1oO/3l38F/4I2sln7BqOrdHv1kvxrcfFAH1wS8RjoNb2+ReYiW3iDTpds7BJiH9e6Wu+VmH9CeYCNqeGY4xAXYclC160LgKB4zara3uh1/oBQmwGZfWWhXQgCn5vbFqnuYHsC6g4Hsx4A4o9lp5MiA1jUHJqv3fUfS7RnfRPfV9P60rWqGRTTk6KMFrj3KWmJ2MmyzkUSViGx3mSkEuqi8C8JtL9xbYYL/33qdKQqPkM3UTuCuO9r7bfkTEA8OFz5gLGGq2FQa6hxUNfDhPC5+Q4nySQQuUpfOxF8hu4jk3WK391g2Yn+4nLcqpXIij+wx97rJT/lSjSCmMJEBiPu+3hbjXZg45KN9SA6+no+3VHY63xSIrO5Dc68sCVFAx4DGmWp7lD+PntKS2urtDjKNIbgKgCCWS0y+PxGomvO3QaUIUudI+eW0eK9LxR0LFGjd+XfcTq6RDEDBOcq8vbVNalhCiW2pzpqxitJ0CPgZSI7UrZXjHdSU5CVQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR08MB9687.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(7916004)(136003)(39830400003)(376002)(396003)(346002)(366004)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(83380400001)(26005)(66476007)(66556008)(66946007)(76116006)(91956017)(66446008)(64756008)(54906003)(316002)(6916009)(8936002)(8676002)(4326008)(5660300002)(41300700001)(6506007)(71200400001)(6512007)(9686003)(2906002)(966005)(6486002)(478600001)(38070700005)(38100700002)(122000001)(86362001)(33716001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: /oycrvaXObDcobAbfC7amNKqZoPO9b3qOSBCNXrFdn7SsnREyBqmHcimlAXBTBjaFjuHBe6v39mRQfrRB8uapIORITXmfAaGL3Ud6sBFy0xbkCjHTAzWucYcl7YtaWCJFd5z/lZKvEmbjf6OXASiMGsrBFrMdig098qDtEKhET3GANH4IMHfukXW6/BRJP80m7QnZA3Nq2wb+O1FXSSYwD1+x4klbdW1i6pIDgI7/u/RuwMInaT+x+G5laTV5+AY5Lz0IcMfGLprCQP/8gmOWL5TeLBUQZ80TRHQYaefV4KRW2fyzabWo10xKYFwzp9KhKXZIqvRpuBKyrBoukEnKQZg7r6yaBP5iXTGnXNTtTAfrTCBQCLCn/yyfHzKbI6VIYcGP5I4Rj4nSVLM6l8ogaIU3IgTPj83sKzYPEtZBNVw3jfuwOfBstuK3CPGfcNSbK8ib6DE69lxWNVE2Ma1XNXmOgTdsxz6CBx3ohD1nvomnGasexmkPeDAA8JXvdTYLYgpqM3hmF1QBab9pD8c9SP9geZGMLjgNTzYlrZgfqHMLYAtbJN7dDtcv6npEMJVFFORCq/i0OExe6FkJSlkaDufVJ97w7r9rQRZ12QHXfp9v+5GyLJ/wTo2ANA2J3f6DlKzTJBAA+OfYMaTFICAekkAqGch/NDdE1hZ5gU3KhXf+72nqcAP9PZgYA07iw0TMk9W9vgPm/01VfbYXn/L/RmJtnzwL0R6fsrC+sLQk561WG+GzyHzN6dy6r roDnrU0poJz3qlpn8eJL7hXplrdozcOu1TzciKFJSZj2pT5mStkP50X1Bo/DrFv5VEfFvaRRmK3uF5OtMIpNj7fPkcBAT3qZpL X-OriginatorOrg: degruchy.org X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR08MB9687.namprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ca85cf8-0aaf-4102-213a-08dbc78c0c36 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2023 23:20:51.7026 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d7875367-b6f1-4ec3-b295-9674eab70109 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MJZJacPyEZLOwQHngPNQo8V2JwtkBS085MksJ/Qdidin3tUQobuGL9NpL5HU2gf/qMhxw01rW0uqxrz51DvMhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR08MB7112 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:272051 Archived-At: Stephen Berman writes: > On Sat, 7 Oct 2023 19:06:55 +0000 "Nathan R. DeGruchy" wrote: > >> I am trying to explore using 'todo-mode' as a todo list and while I can >> see and create entries in todo-mode using the normal functions, trying >> to edit an item seems to cause emacs to soft-lock. I can reproduce this >> in a config-less emacs via `emacs -Q`. >> >> Basically, I have a todo-file at $HOME/.config/emacs/todo/tasks.todo, >> this was created when using `todo-show` initially. The contents are not >> very complex: >> >> (("Emacs" . [1 0 0 0]) ("Home" . [1 0 0 0])) >> --=3D=3D-- Emacs >> [2023-10-07] Learn Todo Mode >> >> =3D=3D--=3D=3D DONE >> --=3D=3D-- Home >> [2023-10-07] Get new wiper blades >> >> =3D=3D--=3D=3D DONE >> >> When on either of the items, if I hit 'e' to edit them, it causes emacs >> to lock up, specifically around `todo-done-item-p()`. I found this out >> by enabling `toggle-debug-on-quit`, reproducing the error, and the >> C-g'ing out of the loop/lockup. I also tried to trace through the >> todo-edit-item with edebug-defun. Stepping through, it seems to reach >> the same predicate function and ... stop. >> >> I'm not sure where to go from here. > > On Sat, 07 Oct 2023 14:37:00 -0500 LdBeth wrote: > >> As we have discussed on IRC, the nonstandard timestamp format is the cau= se. > > Yes. This is a duplicate of bug#55284. At the time that bug was > reported, I didn't have time to try fixing it (being the todo-mode > maintainer), and later, unfortunately, I forgot about it. I'll try to > look into it soon, but, as I noted in that bug thread, I think it's not > easy to fix. One issue is that todo-mode basically employs the same > handling of date formats as diary-lib.el, and the ISO date style causes > problems there too, see bug#55286. > >> The hang is cause by the while loop `todo-item-start' not properly handl= e fail >> case, however. >> >> This patch would at least fix the hang. >> >> --- >> LdBeth >> >> --- 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)) >> + (=3D (forward-line -1) 0))) >> (point))) >> >> (defun todo-item-end () > > Thanks. Even though this doesn't eliminate other problems with using > the ISO date style in todo-mode (or in the Emacs Diary), since it does > prevent the infinite loop here, it may be a good stopgap. > > Steve Berman I guess I could also change back to 'american' or 'european' forms instead of trying to force ISO8601. I appreciate the work being done. --=20 Nathan DeGruchy https://degruchy.org/ nathan@degruchy.org=