GNU bug report logs - #66334
29.1.50; Undoing uncomment-region leaves buffer modified

Previous Next

Package: emacs;

Reported by: martin rudalics <rudalics <at> gmx.at>

Date: Wed, 4 Oct 2023 09:31:01 UTC

Severity: normal

Found in version 29.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 66334-done <at> debbugs.gnu.org
Subject: Re: bug#66334: 29.1.50;
 Undoing uncomment-region leaves buffer modified
Date: Wed, 04 Oct 2023 19:37:21 +0300
> Date: Wed, 4 Oct 2023 11:29:30 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> 
> When with Emacs 29 I make a file /home/martin/temp/foobar.el with the
> following contents
> 
> 
> ;; uncomment this line via C-. then undo
> 
> (find-file "/home/martin/temp/foobar.el")
> 
> (defun my-uncomment-region ()
>    (interactive)
>    (uncomment-region
>     (point-at-bol) (progn (forward-line) (point))))
> 
> (global-set-key [(control .)] 'my-uncomment-region)
> 
> 
> 
> run
> 
> emacs -Q --load "/home/martin/temp/foobar.el"
> 
> and type C-. followed by C-_ the foobar.el buffer remains modified.
> 
> This bug was apparently fixed on master - in reaction to Bug#64989 and
> Bug#60467 I suppose - but seems to persist here on Emacs 29.2.  Note
> that in contrast to those bugs no error message gets printed here.

The bug is unfixed on the emacs-29 branch because the fix we installed
on master was deemed unsafe for the release branch, and no safer patch
was brought up.

So I'm closing this bug because at this point I don't think we will
see a patch to fix it that is safe enough for the release branch.




This bug report was last modified 1 year and 228 days ago.

Previous Next


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