bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gud mode and changing files


From: Kevin Rodgers
Subject: Re: gud mode and changing files
Date: Fri, 17 Jan 2003 10:47:48 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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 via email to

[Prev in Thread] Current Thread [Next in Thread]