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: Thu, 05 Mar 2020 16:07:11 +0100 Message-ID: <87pndqet7k.fsf@fencepost.gnu.org> 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> <87wo8340ct.fsf@stefankangas.se> <874kv7ozf9.fsf@fencepost.gnu.org> <87o8tf7xu3.fsf@gmail.com> <83mu8yyawu.fsf@gnu.org> <874kv299f7.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="108614"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: stefan@marxist.se, 18336@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 05 16:08:15 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 1j9s6h-000SAX-7s for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 16:08:15 +0100 Original-Received: from localhost ([::1]:50862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9s6g-0003c3-9h for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 10:08:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43165) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9s6V-0003W2-AT for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 10:08:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9s6U-0006ab-DE for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 10:08:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9s6U-0006aO-9e for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 10:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9s6U-0005wm-1f for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 10:08: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: Thu, 05 Mar 2020 15:08: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.158342084222816 (code B ref 18336); Thu, 05 Mar 2020 15:08:02 +0000 Original-Received: (at 18336) by debbugs.gnu.org; 5 Mar 2020 15:07:22 +0000 Original-Received: from localhost ([127.0.0.1]:43511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9s5q-0005vw-G7 for submit@debbugs.gnu.org; Thu, 05 Mar 2020 10:07:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9s5o-0005vj-6l for 18336@debbugs.gnu.org; Thu, 05 Mar 2020 10:07:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9s5i-0006BK-SN; Thu, 05 Mar 2020 10:07:14 -0500 Original-Received: from x2f36160.dyn.telefonica.de ([2.243.97.96]:49724 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9s5h-0002MD-Ti; Thu, 05 Mar 2020 10:07:14 -0500 In-Reply-To: <874kv299f7.fsf@gmail.com> (Noam Postavsky's message of "Thu, 05 Mar 2020 09:13:32 -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:176916 Archived-At: Noam Postavsky writes: > Eli Zaretskii writes: > >>> > and my /tmp file system where I also saw this is > >>> I ran my initial experiment in ~/tmp,[...] >>> When I do the same on /tmp, which is mounted noatime I see the extra >>> " changed on disk; really edit the buffer?" question on C-x C-s. > >> lock_file calls verify-visited-file-modtime, which might be affected >> by the noatime option. But I don't understand how noatime could >> affect verify-visited-file-modtime since the latter looks at mtime, >> not atime. > >> Can someone who sees this step with GDB through lock_file and its >> callees, and see what goes wrong there and why? > > Ah, looks like the noatime thing is just a coincidence. What happens in > the ~/tmp case is that when lock_file is called from write_region, the > file doesn't exist, so the extra "changed on disk" question doesn't get > asked. The reason the file doesn't exist, is because it was moved to > the backup name, in backup-buffer. Files under /tmp/ are not backed up > by default, so in that case the file still exists and there is an extra > query. Sorry for the red herring. It was the thing that occured to me first. -- David Kastrup