From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#13149: 24.3.50; Emacs thinks file was changed outside Emacs, but it was not Date: Fri, 01 Feb 2013 14:22:00 -0800 Message-ID: <510C4008.6070609@cs.ucla.edu> References: <6CDE13E3BCAA4AFAAB8BCE105C6ABF12@us.oracle.com><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> <50F5E1C1.2040301@yandex.ru><50F5E9DB.1030309@gmail.com> <50F64149.6010704@cs.ucla.edu><50F7D358.9030100@gmail.com> <50F86E12.3040707@cs.ucla.edu><50F8D150.8030200@gmail.com> <50F8D731.5020001@cs.ucla.edu><50F8D93B.1040901@yandex.ru> <50F8DCCB.1030602@cs.ucla.edu><83a9s67wlr.fsf@gnu.org> <50F9C009.9060708@cs.ucla.edu><50F9D213.3070901@yandex.ru> <50F9EF01.5000703@cs.ucla.edu><50F9F250.1030406@yandex.ru> <50FA06F1.2000308@cs.ucla.edu><50FA1AEF.9070700@yandex.ru> <50FA265E.80301@cs.ucla.edu> <510C2E22.901080! 7@cs.ucla.edu> <22A7346C22DB439382C55EF3F7398DBA@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359757846 3085 80.91.229.3 (1 Feb 2013 22:30:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 22:30:46 +0000 (UTC) Cc: 13149@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 23:31:06 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 1U1P8T-0002Se-Ph for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 23:31:06 +0100 Original-Received: from localhost ([::1]:57010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1P8B-0003A0-B3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 17:30:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1P4B-0002oS-TX for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 17:30:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1Ozs-0007rx-0Z for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 17:26:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1Ozr-0007rt-Tt for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 17:22:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U1P0f-0006ly-Iq for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 17:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2013 22:23: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.135975737526019 (code B ref 13149); Fri, 01 Feb 2013 22:23:01 +0000 Original-Received: (at 13149) by debbugs.gnu.org; 1 Feb 2013 22:22:55 +0000 Original-Received: from localhost ([127.0.0.1]:59988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1P0Y-0006lZ-Dy for submit@debbugs.gnu.org; Fri, 01 Feb 2013 17:22:55 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42089) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1P0V-0006lQ-GN for 13149@debbugs.gnu.org; Fri, 01 Feb 2013 17:22:52 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 3BB7239E8105; Fri, 1 Feb 2013 14:22:01 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6svWR3Q04PIW; Fri, 1 Feb 2013 14:22:00 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C459F39E8008; Fri, 1 Feb 2013 14:22:00 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 In-Reply-To: <22A7346C22DB439382C55EF3F7398DBA@us.oracle.com> X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -4.5 (----) 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:70583 Archived-At: On 02/01/13 14:14, Drew Adams wrote: > No, sorry. I don't build Emacs. If there is a Lisp change I can test that, but > not a C change. I suppose I could install this patch into the trunk instead, temporarily. Eli, do you think it'd be a good idea? === modified file 'src/fileio.c' --- src/fileio.c 2013-02-01 20:51:12 +0000 +++ src/fileio.c 2013-02-01 22:19:12 +0000 @@ -5051,6 +5051,26 @@ This calls `write-region-annotate-functi st.st_size = st1.st_size; modtime = modtime1; } + +#ifdef DOS_NT + /* Temporary hack to diagnose file time stamp bug. */ + { + char format[sizeof "write-region ? .000000000 .000000000: %s" + + 2 * INT_STRLEN_BOUND (long)]; + if (valid_timestamp_file_system + && st.st_dev == timestamp_file_system) + sprintf (format, "write-region = %ld.%09d: %%s", + (long) EMACS_SECS (modtime), + (int) EMACS_NSECS (modtime)); + else + sprintf (format, "write-region ? %ld.%09d %ld.%09d: %%s", + (long) EMACS_SECS (modtime), + (int) EMACS_NSECS (modtime), + (long) EMACS_SECS (modtime1), + (int) EMACS_NSECS (modtime1)); + add_to_log (format, filename, Qnil); + } +#endif } emacs_close (desc1); }