GNU bug report logs - #19029
Cut down on useless "really edit the buffer?" prompts

Previous Next

Package: emacs;

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 #12 received at control <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 19029 <at> debbugs.gnu.org
Subject: Re: bug#19029: Cut down on useless "really edit the buffer?" prompts
Date: Sat, 25 Mar 2017 18:06:21 -0400
tags 19029 fixed
close 19029 26.1
quit

Paul Pogonyshev <pogonyshev <at> 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




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.