]> git.eshelyaron.com Git - emacs.git/commitdiff
(precompute-menubar-bindings): Don't precompute menus if not using x.
authorRichard M. Stallman <rms@gnu.org>
Mon, 16 May 1994 04:49:23 +0000 (04:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 16 May 1994 04:49:23 +0000 (04:49 +0000)
lisp/startup.el

index 01a5101599f1166cc5bd0e11469e02ca6c80f0e2..2bfb5863f2798f8b0cc6766cf31cdca22a2bec27 100644 (file)
@@ -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))