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#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; really edit the buffer Date: Thu, 22 Jan 2015 14:42:37 -0800 Organization: UCLA Computer Science Department Message-ID: <54C17CDD.7090507@cs.ucla.edu> References: <54BE224E.80406@cs.ucla.edu> <54BEF122.60700@cs.ucla.edu> <54C05E6B.3070106@cs.ucla.edu> <54C163AF.6080500@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 1421966594 1152 80.91.229.3 (22 Jan 2015 22:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 22:43:14 +0000 (UTC) Cc: 19607@debbugs.gnu.org To: Bertrand Brelier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 23:43:13 2015 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 1YEQT2-00046x-Fz for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 23:43:12 +0100 Original-Received: from localhost ([::1]:56368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEQT2-0007uf-1z for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 17:43:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEQSy-0007ua-Al for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 17:43:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEQSt-0005MP-67 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 17:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEQSs-0005M4-U9 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 17:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YEQSs-0005Wj-EC for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jan 2015 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19607-submit@debbugs.gnu.org id=B19607.142196656721218 (code B ref 19607); Thu, 22 Jan 2015 22:43:02 +0000 Original-Received: (at 19607) by debbugs.gnu.org; 22 Jan 2015 22:42:47 +0000 Original-Received: from localhost ([127.0.0.1]:53299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEQSc-0005WA-K5 for submit@debbugs.gnu.org; Thu, 22 Jan 2015 17:42:46 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:41966) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEQSZ-0005Vt-HZ for 19607@debbugs.gnu.org; Thu, 22 Jan 2015 17:42:44 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 825A9A600AD; Thu, 22 Jan 2015 14:42:37 -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 j4xWWEBRL6Q8; Thu, 22 Jan 2015 14:42:37 -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 39DFEA60061; Thu, 22 Jan 2015 14:42:37 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:98604 Archived-At: On 01/22/2015 01:26 PM, Bertrand Brelier wrote: > I tried with r- Q but same issue, emacs freezes when I start editing > the file (I can open it but not modify its content) Ah, sorry, I wasn't explicit enough. How about this. When Emacs freezes, print the requested values in the debugger and then continue with the "c" command. I just now did that, with the following results for me: $ gdb ./emacs (gdb) source .gdbinit (gdb) b fileio.c:5338 (gdb) r -Q [In emacs, type C-x C-f abcdef RET, then type "x".] Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338 5338 if (timespec_cmp (mtime, b->modtime) == 0 (gdb) p mtime $1 = { tv_sec = 1421966150, tv_nsec = 791881570 } (gdb) p b->modtime $2 = { tv_sec = 1421966150, tv_nsec = 791881570 } (gdb) c Continuing. [In emacs, type C-x C-s.] Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338 5338 if (timespec_cmp (mtime, b->modtime) == 0 (gdb) p mtime $3 = { tv_sec = 1421966150, tv_nsec = 791881570 } (gdb) p b->modtime $4 = { tv_sec = 1421966150, tv_nsec = 791881570 } (gdb) c Continuing. Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338 5338 if (timespec_cmp (mtime, b->modtime) == 0 (gdb) p mtime $5 = { tv_sec = 0, tv_nsec = -1 } (gdb) p b->modtime $6 = { tv_sec = 1421966150, tv_nsec = 791881570 } (gdb) c Continuing. [At this point, Emacs says "Wrote /home/eggert/decrypted/abcdef.]