aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-03-01 22:43:29 +0000
committerNick Roberts2006-03-01 22:43:29 +0000
commitf4eb22689d5420252193bcc64801c263961ca7e3 (patch)
treeab918813b82070990abb3cd2f82dbd3800bbe1c3
parent115712f09476c57538f1c86a4e89dc5806e9680b (diff)
downloademacs-f4eb22689d5420252193bcc64801c263961ca7e3.tar.gz
emacs-f4eb22689d5420252193bcc64801c263961ca7e3.zip
(gud-speedbar-menu-items): Use
buffer-local-value and add missing :visible keyword.
-rw-r--r--lisp/progmodes/gud.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index a342eb0b6fc..31c8fe0e8a2 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -406,18 +406,18 @@ t means that there is no stack, and we are in display-file mode.")
406 406
407(defvar gud-speedbar-menu-items 407(defvar gud-speedbar-menu-items
408 '(["Jump to stack frame" speedbar-edit-line 408 '(["Jump to stack frame" speedbar-edit-line
409 :visible (with-current-buffer gud-comint-buffer 409 :visible (not (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
410 (not (memq gud-minor-mode '(gdbmi gdba))))] 410 '(gdbmi gdba)))]
411 ["Edit value" speedbar-edit-line 411 ["Edit value" speedbar-edit-line
412 :visible (with-current-buffer gud-comint-buffer 412 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
413 (memq gud-minor-mode '(gdbmi gdba)))] 413 '(gdbmi gdba))]
414 ["Delete expression" gdb-var-delete 414 ["Delete expression" gdb-var-delete
415 (with-current-buffer gud-comint-buffer 415 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
416 (memq gud-minor-mode '(gdbmi gdba)))] 416 '(gdbmi gdba))]
417 ["Auto raise frame" gdb-speedbar-auto-raise 417 ["Auto raise frame" gdb-speedbar-auto-raise
418 :style toggle :selected gdb-speedbar-auto-raise 418 :style toggle :selected gdb-speedbar-auto-raise
419 :visible (with-current-buffer gud-comint-buffer 419 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
420 (memq gud-minor-mode '(gdbmi gdba)))]) 420 '(gdbmi gdba))])
421 "Additional menu items to add to the speedbar frame.") 421 "Additional menu items to add to the speedbar frame.")
422 422
423;; Make sure our special speedbar mode is loaded 423;; Make sure our special speedbar mode is loaded