Commit 0f88624e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Buffer-menu-revert): New function.

(Buffer-menu-mode-map): Use Buffer-menu-revert for g.
(Buffer-menu-mode): Doc fix.
parent 388d92ac
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment