From unknown Sun Jun 22 17:10:28 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#42976 <42976@debbugs.gnu.org> To: bug#42976 <42976@debbugs.gnu.org> Subject: Status: 28.0.50; todo-mode.el editing bugs Reply-To: bug#42976 <42976@debbugs.gnu.org> Date: Mon, 23 Jun 2025 00:10:28 +0000 retitle 42976 28.0.50; todo-mode.el editing bugs reassign 42976 emacs submitter 42976 Stephen Berman severity 42976 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 16:26:20 2020 Received: (at submit) by debbugs.gnu.org; 21 Aug 2020 20:26:20 +0000 Received: from localhost ([127.0.0.1]:48350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9DcB-0005np-KN for submit@debbugs.gnu.org; Fri, 21 Aug 2020 16:26:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:55910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Dc6-0005nX-MZ for submit@debbugs.gnu.org; Fri, 21 Aug 2020 16:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Dc6-0001m3-G6 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2020 16:26:14 -0400 Received: from mout.gmx.net ([212.227.17.20]:33953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Dc4-0006pt-Al for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2020 16:26:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1598041570; bh=aIfql3AjuhlYyUfaCXq9wdXYXG5ER4NZnAa8TqLrtv4=; h=X-UI-Sender-Class:From:To:Subject:Date; b=f8LndHYsNlD9IatSjzU/SJUmP4pB4b9kQACo2iPV0QYTuQcASo0NMG6A8XaP7T4tA fs/AFiZiuvu6sNvex44keDjnMiTMEHo/E2gcbVkDteU2k3Nioa+rsA5SxljVbkLBOq pH0CRNKvMcpoTU7ipEmfxao64SVMVDNuBHMhVKXM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.1.122.94]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBlxM-1kLGpS0fZE-00C7NN for ; Fri, 21 Aug 2020 22:26:10 +0200 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 28.0.50; todo-mode.el editing bugs Date: Fri, 21 Aug 2020 22:26:09 +0200 Message-ID: <87pn7jd9um.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:EuSwpuh5hhlVEyHCQG+X2R177IuPirFCif63Q9KDgM1oGrGHSJi +ZOB+4jkA4RGpPqFgpG/K7bmNOS6aloaPFim2AavsaVm206s3CFKy7CqUfhC1l+NoHTpRGa 9k+BgzpTBzw1Ptr3b81h+h6UGnAtxcgOfXwncX8uFyhslcxvUiH+jYYKoQAFFEBMt9IiGlC 0cLQ7EWn1/25LrtBp6C9g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:b7vJyKF1sKQ=:wvgOkcTiN9NVlsKvUFFGRQ vfwox/lvLZptMl0WDm64XrFgGb/vc96Q1qLFvCGchiTVIuq24QrHteR7hDb68KhVt1nqlNuow n9OY+SXUdDHf0860+GpIta/XIcTvU8dMdP0TLm676E11RpXaFblIapKJeW13onC1LJMTIdDqz lZazlYh0hf0vdaiFa+UWr/GVcJDP+6aE+qi6/Ld1ZpGzaJG373AAGa6NNqm10incggXH5Fu9Q vz3YNqZKFMxO8eGQfMMERmIqQIZx0KpXK8mrqG+ECaNtZmQf+GAwFR2Vqy7N99oR3o4a6lbBE NoXxjr0ASyJtudoldeamhirbU6+iWJz/Zfr1afUhzJWT9MnUupccELX9copkyLN4K0mHtwVeH iM07+JJlkdMijdl+OQr+/aY38prq34zOhiZBy81043m8HhffuKFOwa6tZvFNqfzZLq5VXTVm2 BeS47hx0+0o07rWceJoMWKyO0wpXIrkVICdz7d5K82nTzEc2kxL74RVIg61KyxcDDcBq+nwz7 QOdVyWzbEpdtkTxQvdgNUpWSZmqGKZkTSEHS3vUdwfwVxBvJxoMQLua0nDCG0QDh2xaTHLTDf xLONo6dYysFzmEXKQbt76AcJP06b0OVuDRLp2YEUZ3q7rHED6R+sRcsmwWvG6cB5jSPifi9lw 8oBDu4LU/UMj5ypuK7FbFHp2oQtyDzkPGEMPbnc4WRRDvIEWWpIsqMdxoeqTp+Ja7dk8GSpXc 4uaPCoL7pAg31nQcd1txA+jL2MJlX+Qe+lRYHYNQ0kZtCcFI6PQRqi+vypsmboiWbTdRqBKun sNPC0YoF1EpkMrIlubX96wZWYNDIO8WDUBSCGtuJOXB90t+qEYPAsmxhdcCse0Wp5Hhwe4LyG toEM9Q2CilezSt4WL4eTjTBGUBLaLUiiXhDpW6CNQMUmD62denfu5wgeWDbokvjmb7+lyE3rb e6ysGIDGXfQud7szmix++YgdUaaU4i7VRILex7yZj4VhT984BK7U606LSL5vKvwb+QmL0vymd qOH2hQjiYbmZy9WG6k9CUKvN5wGZLTlrqLgAp7mXLRU/K3+xfCxQpfSS2q+uD2C6pj8WJ7Jof JfnAWshrO78VYnF65wyoKUgk0DEGrvC4iW7S1RP+1OXPbc/a/2qLihF3FsP29TkfufhHbspak M7xXXEjxwVDYcsNS8LH0QKnEyOXr2ntsg1Avb2MFmFYo5FvX8NHR2xRUUZPwmpIq1jEBPX5hq kbnNlwXR0G8DaCioEx9Tri12GSUxJsYZ4+KGuyQ== Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/21 16:26:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) 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: -2.4 (--) I've encountered the following bugs while using todo-mode.el. These bugs assume the existence of a todo file, which is created (by default in ~/.emacs.d/todo/) by the first invocation of the autoloaded function todo-show. The first two bugs result from attempting to use the todo file, which, however, has not yet been read into a buffer. Bug #1: 0. emacs -Q 1. C-h f tod- TAB C-g =3D> This loads todo-mode.el, making commands available that assume a current todo file, which just loading the library does not do. This leads to the following errors: 2. M-x todo-insert-item RET i RET bla RET =3D> Wrong type argument: number-or-marker-p, nil 3. M-x calendar, in Calendar buffer type `i t RET bla' =3D> Category nil is missing todo-category-done string What should happen in both steps 2 and 3 is that the item "bla" should be inserted into the first category of the todo file. Bug #2: 0. emacs -Q 1. C-h f tod- TAB C-g (as above, loads library but not todo file) 2. M-x todo-jump-to-category RET 3. Type the name of a non-exisiting category (existing categories in the default todo file are shown by TAB) and then RET =3D> In the minibuffer this prompt appears: Add new category "bla" to file "nil"? (y or no) This is a bug if the todo file has a name other than "nil" (which it normally will). Type `n' to cancel the command. 4. Repeat step 3 but now type `y' at the (buggy) prompt =3D> Wrong type argument: stringp, nil What should happen is that the todo file should be found and its name used in step 3, and in step 4, the new category "bla" should be added to the file. The next two bugs assume a todo file containing a category with at least one item with a standard diary-format date header consisting of month, day and year, which can be created in todo-mode by typing `ii'. Bug #3: 0. emacs -Q 1. M-x todo-show (to visit the todo file with point on the first item of the first category). 2. Typing `1edd' increments the day number by 1 (`2edd' increments by 2, etc.), adjusting the month and year if necessary, e.g. `1edd' changes the date header [Dec 30, 2019] to [Dec 31, 2019], and repeating `1edd' changes the date to [Jan 1, 2020]. Typing `1edm' increments the month without changing the day number, but should also adjust the year, like `1edd' does. The bug is that the year is not adjusted: `1edm' changes [Dec 1, 2019] to [Jan 1, 2019]. 3. Likewise, now (with header [Jan 1, 2019]) typing `-1edm' (or `-edm') changes the header to [Dec 1, 2019] instead of the expected [Dec 1, 2018] (in contrast to typing `-31edd', which correctly changes [Jan 1, 2019] to [Dec 1, 2018]). In these cases, the year should be adjusted appropriately. Bug #4: 0. emacs -Q 1. M-x todo-show (as above). 2. The month should be incrementable or decrementable by an arbitrary amount, and this works when the numeric prefix is greater than 12, but when it is less than -12, odd results often happen (in addition to bug #3, the failure of adjustment of the year). E.g.: `-13edm' changes [Jan 1, 2019] to [Dec 1, 2019] (correct month, wrong year due to bug #3), but `-14edm' fails to change [Jan 1, 2019], and `-15edm' changes [Jan 1, 2019] to [Feb 1, 2019] and so on. In these cases the correct month change should be made. Bug #5: This bug assumes a todo file containing a category with at least one done item with a comment, which can be created in todo-mode by typing `C-u d' with point on a (not-done) todo item: `d' marks the todo item as done and moves it to a section below the not-done todo items (which is hidden by default) and the prefix argument prompts to add a comment to the done item. 0. emacs -Q 1. M-x todo-show 2. Type `v' to show the done items section. 3. Type `n' until point is on a done item with a comment (which appears in brackets at the end of the done item, prefixed by "COMMENT:"). 4. Type `ec' to edit the comment in the minibuffer. 5. Use dabbrev-expand (M-/) on the comment being edited. 6. Type RET to complete the edit. =3D> This raises the error: "replace-match subexpression does not exist". (With this recipe I have also gotten an args-out-of-range error, but that currently isn't readily reproducible, unlike the replace-match error.) It should be possible to use dabbrev-expand when editing a done item comment. I have fixes for these bugs and I'll commit them to master with a reference to the number of this bug report. In GNU Emacs 28.0.50 (build 16, x86_64-pc-linux-gnu, GTK+ Version 3.24.17,= cairo version 1.17.3) of 2020-08-21 built on strobe-jhalfs Repository revision: 3e10174fb65f4eb601b1921271bdcf10c933b879 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Linux From Scratch SVN-20200401 Configured using: 'configure 'CFLAGS=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 16:51:46 2020 Received: (at 42976-done) by debbugs.gnu.org; 21 Aug 2020 20:51:46 +0000 Received: from localhost ([127.0.0.1]:48369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9E0n-0006Qi-HV for submit@debbugs.gnu.org; Fri, 21 Aug 2020 16:51:46 -0400 Received: from mout.gmx.net ([212.227.15.19]:35935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9E0l-0006QT-JB for 42976-done@debbugs.gnu.org; Fri, 21 Aug 2020 16:51:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1598043097; bh=ybJmHQ7FrO782QT0vDdYhMC4fCc3rzerdftZZlEU+9k=; h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To; b=WRuZluW99cNJom3j016ISD44i82TElKePC3nfv/8sZJCh2yk0ZnnejlZteTuamqn/ HA/zopF/bIwTW+JQZgRRDW2V4mb3V8vZHv8m/r/sRs5K94obkDl9Ofh5vA5DJT+IvR 2WpvKkncw/qrgK/4+xKLpQQVa+HAedeZWqSrU2mU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.1.122.94]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7QxL-1khlOm1NuP-017jqD for <42976-done@debbugs.gnu.org>; Fri, 21 Aug 2020 22:51:37 +0200 From: Stephen Berman To: 42976-done@debbugs.gnu.org Subject: Re: bug#42976: 28.0.50; todo-mode.el editing bugs References: <87pn7jd9um.fsf@gmx.net> Date: Fri, 21 Aug 2020 22:51:36 +0200 In-Reply-To: <87pn7jd9um.fsf@gmx.net> (Stephen Berman's message of "Fri, 21 Aug 2020 22:26:09 +0200") Message-ID: <87h7svd8o7.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:jsD9HChUKAi2lwQohLnkF5BXt/WjX8f1v38FnNLickhKbMi318R qAKGHZAQFk1nZbhWD2+LO7Gx81sukndIvoWSnLTcoUJqpCuz0oLtlwAxmycDOy/Wwu3Ild8 +PB1/BkxZIx3Ae1cVDr7etQGB8SBgbFqXaOFH0TJRD4a7GpuNOE0gw37kfEfGL4r8Q825xz IcWvD8Ui+I9/CQmE5h9mA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:OBhLwH9+jmo=:qEtQfeUnOlPDL8qiDLjmon J86zRTZF2yyy8bn2aUFjrxXMfgBQg7XJi+tpfA5BYnYSZp356H+rUZANH2IbMoTZJO/k8YHqt HWeQDeZ0x4PnZNwGu8vbfmoSIuWPCTBSQnexjgwF3N3+Nbj68mzybHezSQ6dMA2GCXoj8YWh+ BAs59KG6V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flF60yRjT5h5icIc4UINhMUs1 x/JwthXZO52g0xpSgS9EKtVpoTEnqvcidEzL2zg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42976-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 (-) On Fri, 21 Aug 2020 22:26:09 +0200 Stephen Berman wrote: > I've encountered the following bugs while using todo-mode.el. [...] > I have fixes for these bugs and I'll commit them to master with a > reference to the number of this bug report. Done (commit 36bf4fa0b3) and closing. Steve Berman From unknown Sun Jun 22 17:10:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 Sep 2020 11:24:08 +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