From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions Date: Mon, 02 Mar 2020 09:39:14 +0100 Message-ID: <87wo8340ct.fsf@stefankangas.se> References: <87mwaq74xg.fsf@fencepost.gnu.org> <87h7z86hs9.fsf@stefankangas.se> <86v9nooxcg.fsf@gmail.com> <87tv38kp33.fsf@fencepost.gnu.org> <83sgisypbd.fsf@gnu.org> <87pndwklz6.fsf@fencepost.gnu.org> <83o8tgyn1k.fsf@gnu.org> <874kv83pg7.fsf@fencepost.gnu.org> <83lfokylpp.fsf@gnu.org> <87r1yb8kbv.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="97468"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: David Kastrup , 18336@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 02 09:40:17 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 1j8gcb-000PE0-1B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Mar 2020 09:40:17 +0100 Original-Received: from localhost ([::1]:56788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8gcZ-0004VM-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Mar 2020 03:40:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39772) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8gcR-0004Uw-R8 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2020 03:40:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8gcM-0001FV-Qn for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2020 03:40:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8gcM-0001Ex-N6 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2020 03:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j8gcM-0007Yu-L9 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2020 03:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Mar 2020 08:40: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.158313836429002 (code B ref 18336); Mon, 02 Mar 2020 08:40:02 +0000 Original-Received: (at 18336) by debbugs.gnu.org; 2 Mar 2020 08:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:37265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8gbk-0007Xi-CE for submit@debbugs.gnu.org; Mon, 02 Mar 2020 03:39:24 -0500 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:59506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8gbi-0007XQ-4t for 18336@debbugs.gnu.org; Mon, 02 Mar 2020 03:39:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kO0UPmLbJx2QFWST/9zT5B+qxk37YpUjfka7k8x65Io=; b=LJpgeqW+d5XnIORZ0CJM7ujrTT SgOc24wgK+30Ogf54zgwjbA/z3L2ETyBnshJ7nbR8FTZzb6dL7RvUJzMSfh/wZPWDNw+I5JY43Tt+ l9Ccy10nq94qiBrxg5MnmMwoh6sq317KnmJeP4uDweFE6BqlZ4h18Uhe2+OlVML0dh183pcLOw7JJ jvsfTn8XoUyV2h0KGmg1KbiJkdQlaCx98TvcFow7sCf/XFDfnlPxTTqfLzMh/SIYo12ugvnkodKPr f0Gv8JRoI57PtHvAkG1B4I0WOFhh55Ph0ALwLA7Qdbwk0Vf+S8U0D2atb2OrgZyqgFuCo/IoFRp4M 5o8mCMLA==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:49408 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1j8gbc-000rRz-BQ; Mon, 02 Mar 2020 03:39:16 -0500 In-Reply-To: <87r1yb8kbv.fsf@gmail.com> (Noam Postavsky's message of "Sun, 01 Mar 2020 23:14:12 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se 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:176757 Archived-At: Noam Postavsky writes: >> I tried the current master, and I see the same as on the emacs-27 >> branch, with a file not under any VCS. >> >> I have no idea how you see something so different. > > I've tried this now too, and I see the same as Eli, even on Emacs 26.3. > By the way, the "Save anyway?" question doesn't get logged to > *Messages*. OK, this is weird. I think I'm now seeing the same as David on current master. Note that this is different from what I saw earlier, when I saw exactly what Eli describes. 0. emacs -Q 1. C-x C-f /tmp/moo.txt RET 2. abc C-x C-s 3. From terminal: echo "foo" >> /tmp/moo.txt 4. type something, get these messages: moo.txt changed on disk; really edit the buffer? (y, n, r or C-h) y 5. Answer 'y', save the file, get: - do you really want to save? [not logged] - moo.txt changed on disk; really edit the buffer? (y, n, r or C-h) y I tried this several times and got the same result. In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-03-01 built on joffe Repository revision: d97688851bf5069430483c543032ef7cd0c9b5ef Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12007000 System Description: Debian GNU/Linux bullseye/sid Recent messages: (New file) Saving file /tmp/moo.txt... Wrote /tmp/moo.txt moo.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/moo.txt... moo.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. Wrote /tmp/moo.txt --- OK, I tried saving a file in my home directory instead, and now I didn't see the second "changed on disk" message. (That is, I see the same thing that Eli described.) Testing it a bit more, I was able to trigger the second message again, but only once. --- Investigating even further (on current master), I think I now have that: a. In my home directory, I consistently see the message. (David's case) b. In "/tmp" I consistently do *not* see the message. (Eli's case) So I guess the second message is triggered only under specific circumstances? (But even the above conclusion is confusing, since I also saw the message (but only once) even when I saved in "/home". And I don't see why saving in a different directory should matter...) Does anyone have any idea what could be going on here? Have we found ourselves a heisenbug? Or have I thoroughly managed to confuse myself? Best regards, Stefan Kangas