Commit e0316300 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(gud-make-debug-menu): Cope if no local map yet.

parent 0287f07c
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment