GNU bug report logs -
#19029
Cut down on useless "really edit the buffer?" prompts
Previous Next
Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>
Date: Wed, 12 Nov 2014 14:39:02 UTC
Severity: minor
Tags: fixed
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When switching between different branches in a VCS system, file
modification date may change even though its contents isn't. For example,
when switching from trunk to a branch X where the file is modified, then
switching back.
As a result, if the file was opened in Emacs before the switches, and I
attempt to edit it afterwards, Emacs prompts me with "... changed on disk;
really edit the buffer?" even though the only thing that "changed" about it
is the modification time. (To make it worse, Emacs requires _three_
confirmation to edit and save...)
Request: if Emacs detects timestamp change, let it read the file and
compare it with the buffer; if they are byte-to-byte identical, just ignore
the timestamp.
To reproduce: open any existing file, say 'x.txt'. Now type:
M-! touch x.txt
and try to edit the buffer.
Paul
[Message part 2 (text/html, inline)]
This bug report was last modified 8 years and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.