The Buffer Menu opened by C-x C-b (see List Buffers) does not merely list buffers. It also allows you to perform various operations on buffers, through an interface similar to Dired (see Dired). You can save buffers, kill them (here called deleting them, for consistency with Dired), or display them.
To use the Buffer Menu, type C-x C-b and switch to the window displaying the *Buffer List* buffer. You can also type M-x buffer-menu to open the Buffer Menu in the selected window. Alternatively, the command M-x buffer-menu-other-window opens the Buffer Menu in another window, and selects that window.
The Buffer Menu is a read-only buffer, and can be changed only through the special commands described in this section. The usual cursor motion commands can be used in this buffer. The following commands apply to the buffer described on the current line:
Buffer-menu-delete). The deletion flag is indicated by the character ‘D’ on the line, before the buffer name. The deletion occurs only when you type the x command (see below).
Buffer-menu-save). The save flag is indicated by the character ‘S’ on the line, before the buffer name. The saving occurs only when you type x. You may request both saving and deletion for the same buffer.
The commands for adding or removing flags, d, C-d, s and u, all accept a numeric argument as a repeat count.
The following commands operate immediately on the buffer listed on the current line. They also accept a numeric argument as a repeat count.
Buffer-menu-not-modified). See Save Commands.
Buffer-menu-toggle-read-only). See Misc Buffer.
Buffer-menu-visit-tags-table). See Select Tags Table.
The following commands are used to select another buffer or buffers:
quit-window). The most recent formerly visible buffer is displayed in its place.
Buffer-menu-mark). The display flag is indicated by the character ‘>’ at the beginning of the line. (A single buffer may not have both deletion and display flags.)
Buffer-menu-select). If you have not flagged any buffers, this command is equivalent to 1.
The following commands affect the entire buffer list:
Buffer-menu-toggle-files-only). This command toggles the inclusion of such buffers in the buffer list.
Normally, the buffer *Buffer List* is not updated
automatically when buffers are created and killed; its contents are
just text. If you have created, deleted or renamed buffers, the way
to update *Buffer List* to show what you have done is to type
revert-buffer). You can make this happen regularly
auto-revert-interval seconds if you enable Auto Revert
mode in this buffer, as long as it is not marked modified. Global
Auto Revert mode applies to the *Buffer List* buffer only if
global-auto-revert-non-file-buffers is non-
See global-auto-revert-non-file-buffers, for details.