1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

(Buffer-menu-revert): New function.

(Buffer-menu-mode-map): Use Buffer-menu-revert for g.
(Buffer-menu-mode): Doc fix.
This commit is contained in:
Richard M. Stallman 1996-10-07 17:52:50 +00:00
parent 388d92ac27
commit 0f88624ee3

View File

@ -91,7 +91,7 @@
(define-key Buffer-menu-mode-map "m" 'Buffer-menu-mark)
(define-key Buffer-menu-mode-map "t" 'Buffer-menu-visit-tags-table)
(define-key Buffer-menu-mode-map "%" 'Buffer-menu-toggle-read-only)
(define-key Buffer-menu-mode-map "g" 'revert-buffer)
(define-key Buffer-menu-mode-map "g" 'Buffer-menu-revert)
(define-key Buffer-menu-mode-map [mouse-2] 'Buffer-menu-mouse-select)
)
@ -123,7 +123,8 @@ Letters do not insert themselves; instead, they are commands.
\\[Buffer-menu-unmark] -- remove all kinds of marks from current line.
With prefix argument, also move up one line.
\\[Buffer-menu-backup-unmark] -- back up a line and remove marks.
\\[Buffer-menu-toggle-read-only] -- toggle read-only status of buffer on this line."
\\[Buffer-menu-toggle-read-only] -- toggle read-only status of buffer on this line.
\\[Buffer-menu-revert] -- update the list of buffers."
(kill-all-local-variables)
(use-local-map Buffer-menu-mode-map)
(setq major-mode 'Buffer-menu-mode)
@ -134,6 +135,11 @@ Letters do not insert themselves; instead, they are commands.
(setq buffer-read-only t)
(run-hooks 'buffer-menu-mode-hook))
(defun Buffer-menu-revert ()
"Update the list of buffers."
(interactive)
(revert-buffer))
(defun Buffer-menu-revert-function (ignore1 ignore2)
(list-buffers))