unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: gud mode and changing files
Date: Fri, 17 Jan 2003 10:47:48 -0700	[thread overview]
Message-ID: <3E2841C4.5020709@ihs.com> (raw)
In-Reply-To: 871y3cap3o.fsf@fleche.redhat.com

Tom Tromey wrote:

> I leave Emacs running for a long time, and I end up with many
> buffers.  Sometimes I'll do a `cvs update' on the command line but not
> refresh all the corresponding buffers I have in Emacs.
> 
> Then, when I'm debugging in gud mode, Emacs will show me the existing
> buffer.  However, if the underlying file has changed then the gud
> arrow ends up pointing to the wrong place.


Have you tried `M-x global-auto-revert-mode RET'?


> This happened to me twice in the last few days.  Both times it took me
> a while to realize what was going on, and that a simple C-x C-f would
> fix it.


Do you mean `C-x C-v'?


> I think it would be useful if gud-mode would notice this situation and
> tell me about it.  Perhaps before displaying a buffer it could ask me
> if I want to refresh it from the filesystem.

If global-auto-revert-mode is too intrusive, you could use auto-revert-mode in
the mode hook for the files you're debugging (presumably C mode).  You could
even make that conditional upon whether or not GUD is running.

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

      reply	other threads:[~2003-01-17 17:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 19:09 gud mode and changing files Tom Tromey
2003-01-17 17:47 ` Kevin Rodgers [this message]

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=3E2841C4.5020709@ihs.com \
    --to=kevin.rodgers@ihs.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).