mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-31 20:02:42 +00:00
(precompute-menubar-bindings): Don't precompute menus if not using x.
This commit is contained in:
parent
79cf745601
commit
42a49b29f4
@ -185,7 +185,7 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.")
|
||||
|
||||
;; Precompute the keyboard equivalents in the menu bar items.
|
||||
(defun precompute-menubar-bindings ()
|
||||
(if (fboundp 'x-popup-menu)
|
||||
(if (eq window-system 'x)
|
||||
(let ((submap (lookup-key global-map [menu-bar])))
|
||||
(while submap
|
||||
(and (consp (car submap))
|
||||
|
Loading…
Reference in New Issue
Block a user