diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-06-20 16:34:14 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-06-20 16:34:14 +0000 |
commit | e0316300495a54bcd8e82e1616967830d8c95d17 (patch) | |
tree | 923372ff46657f6f2d4f6a4316baf25265a98176 /lisp/gud.el | |
parent | 0287f07cc28795306c1232d408723b67708bae68 (diff) | |
download | emacs-e0316300495a54bcd8e82e1616967830d8c95d17.tar.gz |
(gud-make-debug-menu): Cope if no local map yet.
Diffstat (limited to 'lisp/gud.el')
-rw-r--r-- | lisp/gud.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index 58e2670304f..cf092dc5efb 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -234,7 +234,8 @@ we're in the GUD buffer)." "Make sure the current local map has a [menu-bar debug] submap. If it doesn't, replace it with a new map that inherits it, and create such a submap in that new map." - (if (lookup-key (current-local-map) [menu-bar debug]) + (if (and (current-local-map) + (lookup-key (current-local-map) [menu-bar debug])) nil (use-local-map (gud-new-keymap (current-local-map))) (define-key (current-local-map) [menu-bar debug] |