* bug#19029: Cut down on useless "really edit the buffer?" prompts
@ 2014-11-12 14:38 Paul Pogonyshev
2017-03-25 22:06 ` npostavs
0 siblings, 1 reply; 2+ messages in thread
From: Paul Pogonyshev @ 2014-11-12 14:38 UTC (permalink / raw)
To: 19029
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 984 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#19029: Cut down on useless "really edit the buffer?" prompts
2014-11-12 14:38 bug#19029: Cut down on useless "really edit the buffer?" prompts Paul Pogonyshev
@ 2017-03-25 22:06 ` npostavs
0 siblings, 0 replies; 2+ messages in thread
From: npostavs @ 2017-03-25 22:06 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: 19029
tags 19029 fixed
close 19029 26.1
quit
Paul Pogonyshev <pogonyshev@gmail.com> writes:
> 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
This is implemented in master [1: 5a4bffb661].
etc/NEWS:
** No more prompt about changed file when the file's content is unchanged.
Instead of only checking the modification time, Emacs now also checks
the file's actual content before prompting the user.
1: 2016-09-02 11:44:13 -0400 5a4bffb6617a274ca19bc7f5c1b1ceb6345651ab
Check actual contents before promting about changed file
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-25 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 14:38 bug#19029: Cut down on useless "really edit the buffer?" prompts Paul Pogonyshev
2017-03-25 22:06 ` npostavs
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.