Function: Buffer-menu-select
Buffer-menu-select is an interactive and byte-compiled function
defined in buff-menu.el.gz.
Signature
(Buffer-menu-select)
Documentation
Select this line's buffer; also, display buffers marked with >.
You can mark buffers with the m (Buffer-menu-mark) command.
This command deletes and replaces all the previously existing windows in the selected frame, and will remove any marks.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu-select ()
"Select this line's buffer; also, display buffers marked with `>'.
You can mark buffers with the \\<Buffer-menu-mode-map>\\[Buffer-menu-mark] command.
This command deletes and replaces all the previously existing windows
in the selected frame, and will remove any marks."
(interactive nil Buffer-menu-mode)
(let* ((this-buffer (Buffer-menu-buffer t))
(menu-buffer (current-buffer))
(others (delq this-buffer (Buffer-menu-marked-buffers t)))
(height (/ (1- (frame-height)) (1+ (length others)))))
(delete-other-windows)
(switch-to-buffer this-buffer)
(unless (eq menu-buffer this-buffer)
(bury-buffer menu-buffer))
(dolist (buffer others)
(split-window nil height)
(other-window 1)
(switch-to-buffer buffer))
;; Back to the beginning!
(other-window 1)))