From e0316300495a54bcd8e82e1616967830d8c95d17 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 20 Jun 1995 16:34:14 +0000 Subject: [PATCH] (gud-make-debug-menu): Cope if no local map yet. --- lisp/gud.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- 2.39.2