From: Richard M. Stallman Date: Tue, 20 Jun 1995 16:34:14 +0000 (+0000) Subject: (gud-make-debug-menu): Cope if no local map yet. X-Git-Tag: emacs-19.34~3519 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e0316300495a54bcd8e82e1616967830d8c95d17;p=emacs.git (gud-make-debug-menu): Cope if no local map yet. --- 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]