From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Font lock in GUD buffer Date: Thu, 17 Jan 2008 13:19:12 +1300 Message-ID: <18318.40704.956371.459317@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200529196 9921 80.91.229.12 (17 Jan 2008 00:19:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2008 00:19:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 17 01:20:13 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JFIUG-0000wR-HF for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2008 01:20:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFITr-0005t2-QC for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2008 19:19:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFITn-0005sQ-PA for emacs-devel@gnu.org; Wed, 16 Jan 2008 19:19:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFITj-0005qj-KW for emacs-devel@gnu.org; Wed, 16 Jan 2008 19:19:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFITj-0005qe-Fi for emacs-devel@gnu.org; Wed, 16 Jan 2008 19:19:31 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFITi-0007rS-Ud for emacs-devel@gnu.org; Wed, 16 Jan 2008 19:19:31 -0500 Original-Received: from kahikatea.snap.net.nz (180.31.255.123.static.snap.net.nz [123.255.31.180]) by viper.snap.net.nz (Postfix) with ESMTP id 0743B3DA3D4 for ; Thu, 17 Jan 2008 13:19:17 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 1054D8FC6D; Thu, 17 Jan 2008 13:19:14 +1300 (NZDT) X-Mailer: VM 7.19 under Emacs 23.0.50.31 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87001 Archived-At: 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