summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-09-10 18:19:03 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-09-10 18:19:03 +0000
commit50d4ba399303b7365b03cdd3456a28eae3451fa0 (patch)
treec63ce12cfa63ee99c330b5ab7c3cd3d5f3b0f73d /lisp
parentdeeb21d4d76909c91f4f94f1fa1bbc782fb5f75a (diff)
downloademacs-50d4ba399303b7365b03cdd3456a28eae3451fa0.tar.gz
* keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
(parse_menu_item): Streamline since bindings are recomputed all the time anyway. Don't bother checking Vdefine_key_rebound_commands any more and don't support lmenu's menu-alias any more either. * subr.el (define-key-rebound-commands): Mark obsolete. * startup.el (precompute-menubar-bindings): Remove. (normal-top-level): Remove obsolete code that tried to precompute menubar bindings. * loadup.el (define-key-rebound-commands): Don't bother fiddling with define-key-rebound-commands and precompute-menubar-bindings.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/loadup.el6
-rw-r--r--lisp/startup.el22
-rw-r--r--lisp/subr.el1
4 files changed, 12 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 93372a90e44..6487d3fcbef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
+2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * subr.el (define-key-rebound-commands): Mark obsolete.
+ * startup.el (precompute-menubar-bindings): Remove.
+ (normal-top-level): Remove obsolete code that tried to precompute
+ menubar bindings.
+ * loadup.el (define-key-rebound-commands): Don't bother fiddling with
+ define-key-rebound-commands and precompute-menubar-bindings.
+
2009-09-10 Glenn Morris <rgm@gnu.org>
* pcvs.el (cvs-mode-find-file): Use forward-line rather than goto-line.
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 8f1fe845e39..1fe7d459705 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -233,12 +233,6 @@
(if (load "site-load" t)
(garbage-collect))
-(if (fboundp 'x-popup-menu)
- (precompute-menubar-bindings))
-;; Turn on recording of which commands get rebound,
-;; for the sake of the next call to precompute-menubar-bindings.
-(setq define-key-rebound-commands nil)
-
;; Determine which last version number to use
;; based on the executables that now exist.
(if (and (or (equal (nth 3 command-line-args) "dump")
diff --git a/lisp/startup.el b/lisp/startup.el
index 1d534d12e09..a260cd7c579 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -501,8 +501,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(delete (concat "PWD=" pwd)
process-environment)))))
(setq default-directory (abbreviate-file-name default-directory))
- (let ((menubar-bindings-done nil)
- (old-face-font-rescale-alist face-font-rescale-alist))
+ (let ((old-face-font-rescale-alist face-font-rescale-alist))
(unwind-protect
(command-line)
;; Do this again, in case .emacs defined more abbreviations.
@@ -571,10 +570,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(if (fboundp 'font-menu-add-default)
(font-menu-add-default))
(and window-setup-hook
- (run-hooks 'window-setup-hook))
- (or menubar-bindings-done
- (if (display-popup-menus-p)
- (precompute-menubar-bindings)))))
+ (run-hooks 'window-setup-hook))))
;; Subprocesses of Emacs do not have direct access to the terminal, so
;; unless told otherwise they should only assume a dumb terminal.
;; We are careful to do it late (after term-setup-hook), although the
@@ -595,20 +591,6 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(delete display process-environment)))))
;; Precompute the keyboard equivalents in the menu bar items.
-(defun precompute-menubar-bindings ()
- (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))))
- (progn
- (x-popup-menu nil (cdr (cdr (car submap))))
- (if purify-flag
- (garbage-collect))))
- (setq submap (cdr submap))))
- (setq define-key-rebound-commands t))
-
;; Command-line options supported by tty's:
(defconst tty-long-option-alist
'(("--name" . "-name")
diff --git a/lisp/subr.el b/lisp/subr.el
index 23bb63dc85d..ae19a644ee1 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1076,6 +1076,7 @@ is converted into a string by expressing it in decimal."
;;;; Obsolescence declarations for variables, and aliases.
+(make-obsolete-variable 'define-key-rebound-commands nil "23.2")
(make-obsolete-variable 'redisplay-end-trigger-functions 'jit-lock-register "23.1")
(make-obsolete 'window-redisplay-end-trigger nil "23.1")
(make-obsolete 'set-window-redisplay-end-trigger nil "23.1")