all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font lock in GUD buffer
@ 2008-01-17  0:19 Nick Roberts
  2008-01-17 16:03 ` Sean O'Rourke
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Roberts @ 2008-01-17  0:19 UTC (permalink / raw)
  To: emacs-devel


I would like to be able to vist file locations from the GUD buffer.

By way of illustration consider a program myprog compiled with -g3 (macro
information) and with the header math.h included:

(gdb) start
Breakpoint 1 at 0x80485bb: file myprog.c, line 83.
Starting program: /home/nickrob/myprog 
main (argc=1, argv=0xbfe13914) at myprog.c:83
(gdb) info macro M_PI
Defined at /usr/include/math.h:355
  included at /home/nickrob/myprog.c:4
#define M_PI 3.14159265358979323846
(gdb) 


If you do "M-x compilation-minor-mode" the locations myprog.c:83,
/usr/include/math.h:355 and /home/nickrob/myprog.c:4 are in red and underlined.
If you click on them you can visit them in another buffer.  Of course, you have
to turn off compilation-minor-mode to continue the debug session.  Also when
you do this you find that the mouse-face and help-echo have disappeared from
previous input commands, presumably due to some interaction with
font-lock-mode.

Does anyone know how to do this cleanly?

-- 
Nick                                           http://www.inet.net.nz/~nickrob

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

* Re: Font lock in GUD buffer
  2008-01-17  0:19 Font lock in GUD buffer Nick Roberts
@ 2008-01-17 16:03 ` Sean O'Rourke
  2008-01-17 20:27   ` Nick Roberts
  0 siblings, 1 reply; 3+ messages in thread
From: Sean O'Rourke @ 2008-01-17 16:03 UTC (permalink / raw)
  To: emacs-devel

Nick Roberts <nickrob@snap.net.nz> writes:

> I would like to be able to vist file locations from the GUD
> buffer.
> [...]
> Does anyone know how to do this cleanly?

compilation-shell-minor-mode?

/s

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

* Re: Font lock in GUD buffer
  2008-01-17 16:03 ` Sean O'Rourke
@ 2008-01-17 20:27   ` Nick Roberts
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Roberts @ 2008-01-17 20:27 UTC (permalink / raw)
  To: Sean O'Rourke; +Cc: emacs-devel

 > > I would like to be able to vist file locations from the GUD
 > > buffer.
 > > [...]
 > > Does anyone know how to do this cleanly?
 > 
 > compilation-shell-minor-mode?

Thanks.  It's nearly the right thing but the fontification on the links
disappears after every input GDB command and I have to do "M-x
font-lock-fontify-buffer" to get it back.  I notice that if I run GDB from
within a shell buffer the fontification on the links doesn't disappear but it
still does for the mouse-face and help-echo from previous input commands.

It looks like compilation-shell-minor-mode is rewriting the font-lock rules,
not just adding to them.

-- 
Nick                                           http://www.inet.net.nz/~nickrob

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

end of thread, other threads:[~2008-01-17 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17  0:19 Font lock in GUD buffer Nick Roberts
2008-01-17 16:03 ` Sean O'Rourke
2008-01-17 20:27   ` Nick Roberts

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.