GNU bug report logs - #56397
28.1; Incorrect behavior of buffer-modified-p after undo in indirect buffer

Previous Next

Package: emacs;

Reported by: Bill Sacks <sacks <at> ucar.edu>

Date: Tue, 5 Jul 2022 13:25:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Bill Sacks <sacks <at> ucar.edu>
Cc: 56397 <at> debbugs.gnu.org
Subject: bug#56397: 28.1; Incorrect behavior of buffer-modified-p after undo in indirect buffer
Date: Thu, 07 Jul 2022 11:59:02 +0300
> From: Bill Sacks <sacks <at> ucar.edu>
> Date: Tue, 5 Jul 2022 07:24:29 -0600
> 
> When working in a cloned indirect buffer, if I type something then save the buffer then undo my changes,
> buffer-modified-p returns nil and I am not able to save the version with these changes undone.
> 
> Steps to reproduce:
> 
> 1. Create a text buffer with some text in it (e.g., test.txt) and save it
> 2. Clone the buffer with M-x clone-indirect-buffer
> 3. Type some more text into the indirect buffer (e.g., test.txt<2>) and save it with C-x C-s
> 4. While still in the indirect buffer, undo the text entered in (3) with C-/ until the buffer has returned to the state
> at the start of (3)
> 5. Notice that (buffer-modified-p) returns nil. Attempting to save the buffer gives the message "(No changes
> need to be saved)". However, viewing the file on disk shows that it is still at the state from the end of (3).

Thanks, I think I've now fixed this on the master branch.




This bug report was last modified 2 years and 356 days ago.

Previous Next


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