unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* gud mode and changing files
@ 2003-01-16 19:09 Tom Tromey
  2003-01-17 17:47 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2003-01-16 19:09 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-04-08 on porky.devel.redhat.com
configured using `configure  i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.iso885915
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


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.

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.

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.



Recent input:
C-a SPC c C-g < c SPC SPC C-u C-u C-n C-u C-p SPC SPC 
k d d SPC SPC = C-u C-l C-u C-n C-u C-n p SPC C-n SPC 
SPC n = C-n n SPC <backspace> = C-u C-n C-u C-n C-u 
C-n C-u C-n p SPC SPC c SPC l s C-u C-n C-u C-n z C-c 
b r <return> C-x 2 C-x o y <return> u p <return> <return> 
<return> C-x o C-x C-f <return> y e s <return> C-x 
o C-c C-l C-z o M-x r e p o r t - e <tab> <return>

Recent messages:
Updating of BBDB records finished [2 times]

Updating of BBDB records finished [3 times]

Wrote /home/tromey/.newsrc
Saving /home/tromey/.newsrc.eld...
Saving file /home/tromey/.newsrc.eld...
Wrote /home/tromey/.newsrc.eld
Saving /home/tromey/.newsrc.eld...done
Loading emacsbug...done

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gud mode and changing files
  2003-01-16 19:09 gud mode and changing files Tom Tromey
@ 2003-01-17 17:47 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-01-17 17:47 UTC (permalink / raw)


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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-17 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 19:09 gud mode and changing files Tom Tromey
2003-01-17 17:47 ` Kevin Rodgers

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