diff options
| author | Richard M. Stallman | 1995-07-21 08:30:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-21 08:30:54 +0000 |
| commit | 3f5572980b4b8559e5d0febb726899ca35f87007 (patch) | |
| tree | 8817d1e375f3f13c91e0bc4fd86e985dbedd71c1 | |
| parent | c0acc1122bb1c3a2f1c544b1e1c2a5c902585126 (diff) | |
| download | emacs-3f5572980b4b8559e5d0febb726899ca35f87007.tar.gz emacs-3f5572980b4b8559e5d0febb726899ca35f87007.zip | |
(menu-bar-buffer-menu): Function deleted.
(global-map): Define [menu-bar buffer] as a keymap with no fcn name.
(menu-bar-update-buffers): After defining it, call it.
| -rw-r--r-- | lisp/menu-bar.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 445732b95f6..546def41216 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -421,9 +421,10 @@ Do the same for the keys of the same name." | |||
| 421 | (push-mark (point)) | 421 | (push-mark (point)) |
| 422 | (insert last-command-event)) | 422 | (insert last-command-event)) |
| 423 | 423 | ||
| 424 | (define-key global-map [menu-bar buffer] '("Buffers" . menu-bar-buffers)) | 424 | ;; This definition is just to show what this looks like. |
| 425 | 425 | ;; It gets overridden below when menu-bar-update-buffers is called. | |
| 426 | (defalias 'menu-bar-buffers (make-sparse-keymap "Buffers")) | 426 | (define-key global-map [menu-bar buffer] |
| 427 | (cons "Buffers" (make-sparse-keymap "Buffers"))) | ||
| 427 | 428 | ||
| 428 | (defvar buffers-menu-max-size 10 | 429 | (defvar buffers-menu-max-size 10 |
| 429 | "*Maximum number of entries which may appear on the Buffers menu. | 430 | "*Maximum number of entries which may appear on the Buffers menu. |
| @@ -585,6 +586,8 @@ A large number or nil slows down menu responsiveness.") | |||
| 585 | 586 | ||
| 586 | (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers) | 587 | (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers) |
| 587 | 588 | ||
| 589 | (menu-bar-update-buffers) | ||
| 590 | |||
| 588 | ;; this version is too slow | 591 | ;; this version is too slow |
| 589 | ;;;(defun format-buffers-menu-line (buffer) | 592 | ;;;(defun format-buffers-menu-line (buffer) |
| 590 | ;;; "Returns a string to represent the given buffer in the Buffer menu. | 593 | ;;; "Returns a string to represent the given buffer in the Buffer menu. |