From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs 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 Message-ID: <87tv38kp33.fsf@fencepost.gnu.org> References: <87mwaq74xg.fsf@fencepost.gnu.org> <87h7z86hs9.fsf@stefankangas.se> <86v9nooxcg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="45328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , 18336@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 01 17:39:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j8RcX-000BjM-Tz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 17:39:13 +0100 Original-Received: from localhost ([::1]:49790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8RcX-0005j7-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 11:39:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53337) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8RcN-0005fZ-Bp for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8RcM-0001Xe-A0 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8RcM-0001XS-6k for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j8RcM-0007W6-4X for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Kastrup Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2020 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18336 X-GNU-PR-Package: emacs Original-Received: via spool by 18336-submit@debbugs.gnu.org id=B18336.158308071528840 (code B ref 18336); Sun, 01 Mar 2020 16:39:02 +0000 Original-Received: (at 18336) by debbugs.gnu.org; 1 Mar 2020 16:38:35 +0000 Original-Received: from localhost ([127.0.0.1]:36894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8Rbu-0007V6-Ux for submit@debbugs.gnu.org; Sun, 01 Mar 2020 11:38:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8Rbs-0007Uo-S4 for 18336@debbugs.gnu.org; Sun, 01 Mar 2020 11:38:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j8Rbn-0001H5-Gz; Sun, 01 Mar 2020 11:38:27 -0500 Original-Received: from x4e307dec.dyn.telefonica.de ([78.48.125.236]:57216 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j8Rbm-0004eU-Uj; Sun, 01 Mar 2020 11:38:27 -0500 In-Reply-To: <86v9nooxcg.fsf@gmail.com> (Noam Postavsky's message of "Sun, 01 Mar 2020 11:26:23 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176728 Archived-At: Noam Postavsky writes: > Stefan Kangas writes: > >> David Kastrup 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