From: Stefan Kangas Date: Fri, 25 Nov 2022 00:38:03 +0000 (+0100) Subject: Bind Buffer-menu-view-other-window to "O" X-Git-Tag: emacs-29.0.90~1521 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e769a8eb4402c58adc355f0b15369e423893aa68;p=emacs.git Bind Buffer-menu-view-other-window to "O" * lisp/buff-menu.el (Buffer-menu-mode-map): Bind 'Buffer-menu-view-other-window' to "O". (Buffer-menu-mode): Clean up docstring. (Bug#59280) --- diff --git a/etc/NEWS b/etc/NEWS index 8cb54ca7401..13f21381246 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2906,6 +2906,11 @@ It copies the current line into the kill ring. The new face 'abbrev-table-name' is used to display the abbrev table name. +--- +*** New key binding "O" in `M-x list-buffer'. +This key is now bound to 'Buffer-menu-view-other-window', which will +view this line's buffer in View mode in another window. + * New Modes and Packages in Emacs 29.1 diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index aa5f70edf23..588fe599a46 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -24,8 +24,8 @@ ;;; Commentary: ;; The Buffer Menu is used to view, edit, delete, or change attributes -;; of buffers. The entry points are C-x C-b (`list-buffers') and -;; M-x buffer-menu. +;; of buffers. The entry points are `C-x C-b' (`list-buffers') and +;; `M-x buffer-menu'. ;;; Code: @@ -135,6 +135,7 @@ then the buffer will be displayed in the buffer list.") "%" #'Buffer-menu-toggle-read-only "b" #'Buffer-menu-bury "V" #'Buffer-menu-view + "O" #'Buffer-menu-view-other-window "T" #'Buffer-menu-toggle-files-only "M-s a C-s" #'Buffer-menu-isearch-buffers "M-s a C-M-s" #'Buffer-menu-isearch-buffers-regexp @@ -208,26 +209,25 @@ See `buffer-menu' for a description of its contents. In Buffer Menu mode, the following commands are defined: \\ \\[quit-window] Remove the Buffer Menu from the display. -\\[Buffer-menu-this-window] Select current line's buffer in place of the buffer menu. +\\[Buffer-menu-this-window] Select current line's buffer in place of the buffer menu. \\[Buffer-menu-other-window] Select that buffer in another window, so the Buffer Menu remains visible in its window. -\\[Buffer-menu-view] Select current line's buffer, in View mode. -\\[Buffer-menu-view-other-window] Select that buffer in - another window, in `view-mode'. +\\[Buffer-menu-view] Select current line's buffer, in `view-mode'. +\\[Buffer-menu-view-other-window] Select that buffer in another window, in `view-mode'. \\[Buffer-menu-switch-other-window] Make another window display that buffer. \\[Buffer-menu-mark] Mark current line's buffer to be displayed. \\[Buffer-menu-select] Select current line's buffer. - Also show buffers marked with m, in other windows. + Also show buffers marked with \"m\", in other windows. \\[Buffer-menu-1-window] Select that buffer in full-frame window. \\[Buffer-menu-2-window] Select that buffer in one window, together with the buffer selected before this one in another window. \\[Buffer-menu-isearch-buffers] Incremental search in the marked buffers. \\[Buffer-menu-isearch-buffers-regexp] Isearch for regexp in the marked buffers. -\\[Buffer-menu-multi-occur] Show lines matching regexp in the marked buffers. +\\[Buffer-menu-multi-occur] Show lines matching regexp in the marked buffers. \\[Buffer-menu-visit-tags-table] `visit-tags-table' this buffer. \\[Buffer-menu-not-modified] Clear modified-flag on that buffer. \\[Buffer-menu-save] Mark that buffer to be saved, and move down. -\\[Buffer-menu-delete] Mark that buffer to be deleted, and move down. +\\[Buffer-menu-delete] Mark that buffer to be deleted, and move down. \\[Buffer-menu-delete-backwards] Mark that buffer to be deleted, and move up. \\[Buffer-menu-execute] Delete or save marked buffers. \\[Buffer-menu-unmark] Remove all marks from current line.