unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Bertrand Brelier <bertrand.brelier@gmail.com>
Cc: 19607@debbugs.gnu.org
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	[thread overview]
Message-ID: <54C17CDD.7090507@cs.ucla.edu> (raw)
In-Reply-To: <CADF9JriCVLwjwGppyg4KU4+kZ5s9b4EXCChOHr=xXUfnmJogmg@mail.gmail.com>

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.]





  reply	other threads:[~2015-01-22 22:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 13:23 bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; really edit the buffer Bertrand Brelier
2015-01-20  9:39 ` Paul Eggert
2015-01-20 13:19   ` Bertrand Brelier
2015-01-21  0:21     ` Paul Eggert
2015-01-21 13:12       ` Bertrand Brelier
2015-01-22  2:20         ` Paul Eggert
2015-01-22 14:16           ` Bertrand Brelier
2015-01-22 20:55             ` Paul Eggert
2015-01-22 21:26               ` Bertrand Brelier
2015-01-22 22:42                 ` Paul Eggert [this message]
2015-01-23 13:15                   ` Bertrand Brelier
2015-01-23 22:27                     ` Paul Eggert
2015-01-26 13:08                       ` Bertrand Brelier
2015-01-26 19:43                         ` Paul Eggert
2015-01-27 22:29                         ` Paul Eggert
2015-01-27 23:04                           ` Jakob Unterwurzacher
2015-01-28  4:56                             ` Paul Eggert
2015-03-23 18:58                               ` Glenn Morris
2015-03-24  0:13                                 ` Paul Eggert
2015-01-28 13:11                           ` Bertrand Brelier
2015-01-26 23:08 ` Jakob Unterwurzacher
2015-01-27 21:30 ` bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; Jakob Unterwurzacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C17CDD.7090507@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=19607@debbugs.gnu.org \
    --cc=bertrand.brelier@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).