aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-06-17 23:53:53 +0000
committerRichard M. Stallman <[email protected]>1995-06-17 23:53:53 +0000
commit365636dc53147e9a3192f3a19f0b2f176fa1db56 (patch)
treef05f32abd1ccc1f68f5e0cf42b340b10e9e1e915 /lisp/startup.el
parentf5263a5cfc5cb6f1ae2b8c32593e1d7c7e07d2f3 (diff)
(normal-top-level, command-line-1):
Call precompute-menubar-bindings only if using x. (precompute-menubar-bindings): Don't check for x here. Set define-key-rebound-commands to t.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el24
1 files changed, 13 insertions, 11 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 9b73e40a59..6b636f5451 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -295,19 +295,20 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
(and window-setup-hook
(run-hooks 'window-setup-hook))
(or menubar-bindings-done
- (precompute-menubar-bindings))))))
+ (if (eq window-system 'x)
+ (precompute-menubar-bindings)))))))
;; Precompute the keyboard equivalents in the menu bar items.
(defun precompute-menubar-bindings ()
- (if (eq window-system 'x)
- (let ((submap (lookup-key global-map [menu-bar])))
- (while submap
- (and (consp (car submap))
- (symbolp (car (car submap)))
- (stringp (car-safe (cdr (car submap))))
- (keymapp (cdr (cdr (car submap))))
- (x-popup-menu nil (cdr (cdr (car submap)))))
- (setq submap (cdr submap))))))
+ (let ((submap (lookup-key global-map [menu-bar])))
+ (while submap
+ (and (consp (car submap))
+ (symbolp (car (car submap)))
+ (stringp (car-safe (cdr (car submap))))
+ (keymapp (cdr (cdr (car submap))))
+ (x-popup-menu nil (cdr (cdr (car submap)))))
+ (setq submap (cdr submap))))
+ (setq define-key-rebound-commands t))
(defun command-line ()
(setq command-line-default-directory default-directory)
@@ -590,7 +591,8 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
(setq window-setup-hook nil)
;; Do this now to avoid an annoying delay if the user
;; clicks the menu bar during the sit-for.
- (precompute-menubar-bindings)
+ (if (eq window-system 'x)
+ (precompute-menubar-bindings))
(setq menubar-bindings-done t)
(unwind-protect
(progn