Subject: Re: bug#19029: Cut down on useless "really edit the buffer?" prompts

From: [email-masked]
Date: Sat, 25 Mar 2017 18:06:21 -0400

tags 19029 fixed
close 19029 26.1
quit

Paul Pogonyshev <[email-masked]> 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