summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gud.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-09-17 22:16:36 -0700
committerGlenn Morris <rgm@gnu.org>2013-09-17 22:16:36 -0700
commit30810a057cc36f9374cef60c615e3a66c8e40c4a (patch)
treed2793a6fb21ae5be7c9c15dbe04bf0b474ca09be /lisp/progmodes/gud.el
parent92d77c897be154cbc9ce960bd974bfd0f8f566df (diff)
downloademacs-30810a057cc36f9374cef60c615e3a66c8e40c4a.tar.gz
emacs-30810a057cc36f9374cef60c615e3a66c8e40c4a.tar.bz2
emacs-30810a057cc36f9374cef60c615e3a66c8e40c4a.zip
* progmodes/gud.el (gud-find-file): Silence --without-x compilation.
Diffstat (limited to 'lisp/progmodes/gud.el')
-rw-r--r--lisp/progmodes/gud.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index c549d9eedef..c03c64b21ad 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1,7 +1,6 @@
;;; gud.el --- Grand Unified Debugger mode for running GDB and other debuggers
-;; Copyright (C) 1992-1996, 1998, 2000-2013 Free Software Foundation,
-;; Inc.
+;; Copyright (C) 1992-1996, 1998, 2000-2013 Free Software Foundation, Inc.
;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
;; Maintainer: FSF
@@ -321,8 +320,9 @@ Uses `gud-<MINOR-MODE>-directories' to find the source files."
(when buf
;; Copy `gud-minor-mode' to the found buffer to turn on the menu.
(with-current-buffer buf
- (set (make-local-variable 'gud-minor-mode) minor-mode)
- (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
+ (setq-local gud-minor-mode minor-mode)
+ (if (boundp 'tool-bar-map)
+ (setq-local tool-bar-map gud-tool-bar-map))
(when (and gud-tooltip-mode
(eq gud-minor-mode 'gdbmi))
(make-local-variable 'gdb-define-alist)