Commit 6917cfb0 authored by Karl Heuer's avatar Karl Heuer
Browse files

(mouse-major-mode-menu): Avoid confusing error message when there's no current

local map.
parent 4648e527
......@@ -52,7 +52,8 @@
(define-key newmap (vector (car event))
(nconc (make-sparse-keymap "Menu")
(mouse-major-mode-menu-1
(lookup-key (current-local-map) [menu-bar]))))
(and (current-local-map)
(lookup-key (current-local-map) [menu-bar])))))
(mouse-major-mode-menu-compute-equiv-keys newmap)
(command-execute
;; Make NEWMAP override the usual definition
......
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