changeset 12340:dd57075ef7b0

(gud-make-debug-menu): Cope if no local map yet.
author Richard M. Stallman <rms@gnu.org>
date Tue, 20 Jun 1995 16:34:14 +0000
parents 3398b88cbd25
children 315c2aaf43a1
files lisp/gud.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gud.el	Tue Jun 20 16:28:39 1995 +0000
+++ b/lisp/gud.el	Tue Jun 20 16:34:14 1995 +0000
@@ -234,7 +234,8 @@
   "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]