From: Paul Pogonyshev <pogonyshev@gmail.com>
To: 19029@debbugs.gnu.org
Subject: bug#19029: Cut down on useless "really edit the buffer?" prompts
Date: Wed, 12 Nov 2014 15:38:23 +0100 [thread overview]
Message-ID: <CAG7BpaquzXfbjautAmWdVws1iE-_k_SB71nKAurZye_2LaiX+w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2014-11-12 14:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 14:38 Paul Pogonyshev [this message]
2017-03-25 22:06 ` bug#19029: Cut down on useless "really edit the buffer?" prompts npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG7BpaquzXfbjautAmWdVws1iE-_k_SB71nKAurZye_2LaiX+w@mail.gmail.com \
--to=pogonyshev@gmail.com \
--cc=19029@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).