From xemacs-m  Tue Dec 31 13:25:17 1996
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id NAA22606 for <xemacs-beta@xemacs.org>; Tue, 31 Dec 1996 13:25:16 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id LAA23459; Tue, 31 Dec 1996 11:35:44 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: gdb mode filename completion in 19.15b4
References: <9612311719.AA29498@euler.alphatech.com>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: greg@alphatech.com's message of Tue, 31 Dec 1996 12:19:03 -0500
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 31 Dec 1996 11:35:44 -0800
Message-ID: <m2sp4mh5gv.fsf@altair.xemacs.org>
Lines: 36
X-Mailer: Red Gnus v0.72/XEmacs 19.15

>>>>> "Greg" == Greg Klanderman <greg@alphatech.com> writes:

Greg> It used to be the case in 19.13 that gdb mode kept track of any cd's
Greg> so that using <tab> to complete a filename was relative to the right
Greg> directory.  This now seems broken in 19.15b4 (on solaris but I doubt
Greg> that matters).  No time to track this down just now.

Did this work under 19.14 (anyone)?

Greg> Also, gdb mode probably needs to require c-mode which is no longer
Greg> dumped.  Trying to run gdb without having loaded any c files results
Greg> in "void variable c-mode-syntax-table" errors.  Maybe this is already
Greg> fixed in a more recent beta.

Index: gdb.el
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/lisp/comint/gdb.el,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 gdb.el
--- gdb.el	1996/12/18 22:49:52	1.1.1.2
+++ gdb.el	1996/12/31 19:32:44
@@ -243,6 +243,8 @@
   (interactive)
   (comint-mode)
   (use-local-map gdb-mode-map)
+  (when (not (boundp 'c-mode-syntax-table))
+    (require 'cc-mode))
   (set-syntax-table c-mode-syntax-table)
   (make-local-variable 'gdb-last-frame-displayed-p)
   (make-local-variable 'gdb-last-frame)

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"That Bill Clinton.  He probably doesn't know how to log on to the
Internet."  -- Rush Limbaugh, noted Computer Expert

