GNU bug report logs - #78608
31.0.50; Todo mode bug revealed by setq-default change

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Tue, 27 May 2025 15:55:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stephen Berman <stephen.berman <at> gmx.net>

Full log


Message #16 received at 78608-done <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 78608-done <at> debbugs.gnu.org
Subject: Re: bug#78608: 31.0.50; Todo mode bug revealed by setq-default change
Date: Wed, 28 May 2025 17:21:07 +0200
On Wed, 28 May 2025 13:45:33 +0300 Eli Zaretskii <eliz <at> gnu.org> wrote:

>> Date: Tue, 27 May 2025 17:53:24 +0200
>> From:  Stephen Berman via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
[...]
>> Problem (pre-master): Then I tested invoking `todo-jump-to-category'
>> from outside of a todo-mode buffer and specifying a non-existing
>> category, and saw the same pattern, which, however, now reverses the
>> problem status: the new (empty) category is displayed and there is the
>> now expected prompt for a Todo item in master but, now wrongly, not in
>> emacs-30; thus, in this case the behavior in emacs-30 (and earlier)
>> contradicts the documentation.  To reproduce, carry out the above recipe
>> (in master and in emacs-30), but in step 5 enter "test2" at the prompt
>> instead of "test1".  (When I implemented `todo-jump-to-category', I
>> apparently failed to test this case and haven't made use of it since.)
>> 
>> Applying the above patch to emacs-30 also fixes this problem, and with
>> the patch the other case (specifying an existing category) still works
>> correctly in emacs-30.  The fact that the latter case also works
>> correctly in emacs-30 without the patch is evidently due to the
>> problematic behavior of `setq-local' fixed by f3e0bdf1b98.  The patch
>> has a narrow scope, so I think it's safe enough to commit to emacs-30,
>> even though the bug there is not a regression; but if that's not
>> acceptable, I'll commit it to master.
>
> I'm okay with committing this to emacs-30.

Thanks, done in commit 4507b6a9c75 and closing the bug.




This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.