From: David Kastrup <dak@gnu.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Stefan Kangas <stefan@marxist.se>, 18336@debbugs.gnu.org
Subject: bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions
Date: Sun, 01 Mar 2020 17:38:24 +0100 [thread overview]
Message-ID: <87tv38kp33.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <86v9nooxcg.fsf@gmail.com> (Noam Postavsky's message of "Sun, 01 Mar 2020 11:26:23 -0500")
Noam Postavsky <npostavs@gmail.com> writes:
> Stefan Kangas <stefan@marxist.se> writes:
>
>> David Kastrup <dak@gnu.org> writes:
>
>>> It does not make sense at all for Emacs to ask
>>>
>>> smob-convert.sh changed on disk; really edit the buffer? (y, n, r or C-h) y
>>>
>>> as a reply to me typing C-x C-s since C-x C-s is _not_ a request to edit
>>> the buffer. It is a request to save the file _after_ editing the
>>> buffer, and I already discussed the consequences of editing and saving
>>> with Emacs previously.
>
>> Maybe something has changed since you reported this, because I'm
>> seeing the following messages:
>>
>> (New file)
>> Saving file /tmp/foo.txt...
>> Wrote /tmp/foo.txt
>> foo.txt changed on disk; really edit the buffer? (y, n, r or C-h) y
>> File on disk now will become a backup file if you save these changes.
>> Saving file /tmp/foo.txt...
>> foo.txt has changed since visited or saved. Save anyway? (y or n) y
>>
>> This makes a lot of sense to me. The prompts are really about two
>> different things, which seems to now be fully clear.
>>
>> Given the above, I don't see any need to do any further changes here.
>> I'll close this bug in a couple of weeks unless there is more to
>> discuss.
>
> I would agree with you that the second question is now more clear, but I
> think the first question shouldn't be asked in this case, since there
> was no edit attempt (as described in the original report).
And it is still the same in that respect.
[Original change behind Emacs' back, the trying to edit buffer]
smobs.cc changed on disk; really edit the buffer? (y, n, r or C-h) y
File on disk now will become a backup file if you save these changes.
[So far so good. Now pressing C-x C-s]
Saving file /usr/local/tmp/lilypond/lily/smobs.cc...
[That message is ok]
smobs.cc changed on disk; really edit the buffer? (y, n, r or C-h) y
[That question is ludicrous. I am saving the file, not editing it.]
File on disk now will become a backup file if you save these changes.
[What does that even mean? I _am_ saving this file right now.]
Wrote /usr/local/tmp/lilypond/lily/smobs.cc
--
David Kastrup
next prev parent reply other threads:[~2020-03-01 16:38 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 7:44 bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions David Kastrup
2020-03-01 0:27 ` Stefan Kangas
2020-03-01 16:26 ` Noam Postavsky
2020-03-01 16:38 ` David Kastrup [this message]
2020-03-01 17:09 ` Eli Zaretskii
2020-03-01 17:45 ` David Kastrup
2020-03-01 17:58 ` Eli Zaretskii
2020-03-01 18:22 ` David Kastrup
2020-03-01 18:27 ` Eli Zaretskii
2020-03-02 4:14 ` Noam Postavsky
2020-03-02 8:27 ` Eli Zaretskii
2020-03-02 9:42 ` David Kastrup
2020-03-02 11:04 ` Eli Zaretskii
2020-03-02 11:41 ` David Kastrup
2020-03-02 11:51 ` Eli Zaretskii
2020-03-02 8:39 ` Stefan Kangas
2020-03-02 8:55 ` Eli Zaretskii
2020-03-02 9:04 ` Stefan Kangas
2020-03-02 11:01 ` Eli Zaretskii
2020-03-02 9:53 ` David Kastrup
2020-03-02 12:20 ` Noam Postavsky
2020-03-02 16:33 ` Eli Zaretskii
2020-03-05 14:13 ` Noam Postavsky
2020-03-05 15:07 ` David Kastrup
2020-03-05 17:54 ` Noam Postavsky
2020-03-05 19:31 ` Eli Zaretskii
2020-03-22 1:13 ` Noam Postavsky
2020-03-22 14:35 ` Eli Zaretskii
2020-03-22 15:45 ` Noam Postavsky
2020-03-22 17:09 ` Eli Zaretskii
2020-03-22 19:46 ` Noam Postavsky
2020-03-22 20:16 ` Eli Zaretskii
2020-03-23 3:26 ` Noam Postavsky
2020-03-05 16:02 ` Eli Zaretskii
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=87tv38kp33.fsf@fencepost.gnu.org \
--to=dak@gnu.org \
--cc=18336@debbugs.gnu.org \
--cc=npostavs@gmail.com \
--cc=stefan@marxist.se \
/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).