# HG changeset patch # User Richard M. Stallman # Date 763518961 0 # Node ID 8ed445c84d3c3bd742c3dd64c3284210bdfa197c # Parent 731726860971d59ea8d23625d79fbc1648ae0cb1 Preload menu-bar. Prescan the menu bar keymaps for keyboard equivalents. diff -r 731726860971 -r 8ed445c84d3c lisp/loadup.el --- a/lisp/loadup.el Sun Mar 13 00:35:22 1994 +0000 +++ b/lisp/loadup.el Sun Mar 13 00:36:01 1994 +0000 @@ -56,6 +56,7 @@ (load "frame") (load "mouse") (garbage-collect) + (load "menu-bar") (load "scroll-bar") (load "select"))) (garbage-collect) @@ -114,6 +115,17 @@ ;; We specify .el in case someone compiled version.el by mistake. (load "version.el") +;; Precompute the keyboard equivalents in the menu bar items. +(if (fboundp 'x-popup-menu) + (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))))) + ;If you want additional libraries to be preloaded and their ;doc strings kept in the DOC file rather than in core, ;you may load them with a "site-load.el" file.