From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13149: 24.3.50; Emacs thinks file was changed outside Emacs, but it was not Date: Wed, 16 Jan 2013 03:09:53 +0400 Message-ID: <50F5E1C1.2040301@yandex.ru> References: <6CDE13E3BCAA4AFAAB8BCE105C6ABF12@us.oracle.com> <874njs19zb.fsf@yandex.ru> <50F3935A.2090003@yandex.ru> <50F41CE7.60306@gmail.com> <50F44E6B.8090007@cs.ucla.edu> <50F484CB.6010905@gmail.com> <50F4FB0B.5070003@cs.ucla.edu> <50F5192B.602@yandex.ru> <50F5928A.9010009@cs.ucla.edu> <50F5CC3D.5090802@yandex.ru> <50F5CE65.9030002@cs.ucla.edu> <50F5D3F5.6050604@yandex.ru> <50F5DA58.3020404@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358291442 22062 80.91.229.3 (15 Jan 2013 23:10:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 23:10:42 +0000 (UTC) Cc: 13149@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 00:10:58 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TvFef-0008Mc-CC for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2013 00:10:53 +0100 Original-Received: from localhost ([::1]:33008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvFeO-0007FM-VH for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 18:10:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvFeK-0007FE-AH for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 18:10:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvFeH-0004rS-Tv for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 18:10:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvFeH-0004rN-Qf for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 18:10:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TvFen-0003bH-H4 for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2013 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 13149-submit@debbugs.gnu.org id=B13149.135829142713797 (code B ref 13149); Tue, 15 Jan 2013 23:11:01 +0000 Original-Received: (at 13149) by debbugs.gnu.org; 15 Jan 2013 23:10:27 +0000 Original-Received: from localhost ([127.0.0.1]:34023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvFeF-0003aU-7d for submit@debbugs.gnu.org; Tue, 15 Jan 2013 18:10:27 -0500 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:63838) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvFeD-0003aN-Bk for 13149@debbugs.gnu.org; Tue, 15 Jan 2013 18:10:26 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id 15so446309wgd.28 for <13149@debbugs.gnu.org>; Tue, 15 Jan 2013 15:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=N9MOkFZnl7ulUa6RERLOF6n+IKbLI8yznj9FliLvFfg=; b=ltv0pjRaAaNLYFxGTze4LzO8RyLWZ/bF12eFKEhFqm3CLkjtvkROe/sEWFACKwC2eA iDP3kBfLTOgy9/XoDdurwlMlo/Lr+6SbLB2bTajPLJbmslD2NFLw+zKq2OF3Mu8zE0FR t1XG7+OggGS55Pd4XyQ6W8aEgN/d1arzRjq8uZoOjo8zq9eJdMO4SJGvoc0otZHWbrE/ O2sdDPhzm/dKUg0jLZ4rGMUK/g2dVN2XUqsLz6g8maOesKiFt43lyGhH8E2H8ktkdwYw 0may3aif/tHFxTh00z/5gS17NzynFpfj4z38H0uStIC+UtHbFzEWCQWNTxeOM9KfHeTD qX0Q== X-Received: by 10.194.76.165 with SMTP id l5mr143930024wjw.14.1358291391501; Tue, 15 Jan 2013 15:09:51 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id ew4sm6017297wid.11.2013.01.15.15.09.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 15:09:50 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <50F5DA58.3020404@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69841 Archived-At: On 16.01.2013 2:38, Paul Eggert wrote: > On 01/15/13 14:11, Dmitry Gutov wrote: > >> Here you go: > > Sorry, what scenario are you using for that? Sorry, in that and previous messages, I only posted the part I supposed relevant, which is after the file is opened. > Here's what I get when I run "src/emacs -Q /tmp/r" and type "a C-x C-s b". > In this transcript I indicate exactly when I typed each character. > > ... > > You're evidently getting different behavior, since you don't see > lread.c at all, for example. If I'm guessing right, I think the key > sequence in your transcript is here: > > fileio.c:5359: stat_mtime=1358287604.023708900 > fileio.c:5020: stat_mtime=1358287610.000000000 > dired.c:958: stat_mtime=1358287613.927966600 > fileio.c:5359: stat_mtime=1358287613.927966600 > > and that this corresponds to the last 5 lines of my transcript. > > What happens if you apply the following patch as well? > Does it cause Emacs to output "fstat and lstat disagree!"? It does! Here's the more detailed log: $ src/emacs -Q fileio.c:3581: stat_mtime=1358290106.959122882 fileio.c:3581: stat_mtime=1358290027.851586258 dired.c:958: stat_mtime=1358289897.278327924 dired.c:958: stat_mtime=1358289897.278327924 fileio.c:3581: stat_mtime=1341302771.000000000 fileio.c:3581: stat_mtime=1358138630.713864000 lread.c:1228: stat_mtime=1358194311.328310000 lread.c:1228: stat_mtime=1358290456.533834487 find-file dired.c:958: stat_mtime=1358291126.115457800 dired.c:958: stat_mtime=1358291126.115457800 fileio.c:3581: stat_mtime=1358291126.115457800 fileio.c:3363: stat_mtime=1358291126.115457800 fileio.c:3363: stat_mtime=1358285614.014009800 lread.c:1228: stat_mtime=1358194311.328310000 lread.c:1228: stat_mtime=1358290442.274708012 modify fileio.c:5373: stat_mtime=1358291126.115457800 save-buffer fileio.c:5373: stat_mtime=1358291126.115457800 dired.c:958: stat_mtime=1358291126.115457800 dired.c:958: stat_mtime=1358291126.115457800 dired.c:958: stat_mtime=1358291126.115457800 fileio.c:2200: stat_mtime=1358291126.115457800 fileio.c:5373: stat_mtime=1358291126.115457800 fileio.c:5020: stat_mtime=1358291194.000000000 fileio.c:5037: stat_mtime=1358291196.726424200 fstat and lstat disagree! dired.c:958: stat_mtime=1358291196.726424200 modify again fileio.c:5373: stat_mtime=1358291196.726424200 lread.c:1228: stat_mtime=1358194311.328310000 lread.c:1228: stat_mtime=1358290142.953112077 y save-buffer again fileio.c:5373: stat_mtime=1358291196.726424200 yes dired.c:958: stat_mtime=1358291196.726424200 dired.c:958: stat_mtime=1358291196.726424200 dired.c:958: stat_mtime=1358291196.726424200 fileio.c:2200: stat_mtime=1358291196.726424200 fileio.c:5373: stat_mtime=1358291196.726424200 y fileio.c:5020: stat_mtime=1358291233.000000000 fileio.c:5037: stat_mtime=1358291234.976781400 fstat and lstat disagree! dired.c:958: stat_mtime=1358291234.976781400