# HG changeset patch # User Richard M. Stallman # Date 803666054 0 # Node ID dd57075ef7b0bda1f80a2a54afe2119917406283 # Parent 3398b88cbd25738d3bab4141697d8f60bba96c00 (gud-make-debug-menu): Cope if no local map yet. diff -r 3398b88cbd25 -r dd57075ef7b0 lisp/gud.el --- 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]