3.16 Buffers
This section contains details of commands used to manipulate buffers.
Select BufferEditor Command
- Arguments: buffer-name
Key sequence:Ctrl+X Bbuffer-name - Displays a buffer called buffer-name in the current window. If no buffer name is provided, the last buffer accessed in the current window is displayed. If the buffer that is selected is already being displayed in another window, any modifications to that buffer are shown simultaneously in both windows.
Select Buffer Other WindowEditor Command
- Arguments: buffer-name
Key sequence: None - Displays a buffer called buffer-name in a new window. If no buffer name is provided, the last buffer displayed in the current window is selected. If the buffer that is selected is already being displayed in another window, any modifications to that buffer are shown simultaneously in both windows.
Select Previous BufferEditor Command
- Arguments: None
Key sequence: +Ctrl+L - Displays the last buffer accessed in a new window. If the buffer that is selected is already being displayed in another window, any modifications to that buffer are shown simultaneously in both windows.
- A prefix argument causes the appropriately numbered buffer, from the top of the buffer history, to be selected.
Kill BufferEditor Command
- Arguments: buffer-name
Key sequence:Ctrl+X Kbuffer-name
editor:kill-buffer-command p &optional buffer-name
- Deletes a buffer called buffer-name. If no buffer name is provided, the current buffer is deleted. If the buffer that is selected for deletion has been modified then confirmation is asked for before deletion takes place.
List BuffersEditor Command
- Arguments: None
Key sequence:Ctrl+X Ctrl+B - Displays a list of all the existing buffers in the Buffers window in the Editor tool. Information is given on the name of the buffer, its mode, whether it has been modified or not, the pathname of any file it is associated with, and its size.
- A buffer can be selected by clicking the left mouse button on the buffer name. The buttons on the toolbar can then be used to modify the selected buffer.
Create Buffer Editor Command
- Arguments: buffer-name
Key sequence: None
editor:create-buffer-command p &optional buffer-name
- Creates a buffer called buffer-name. If no buffer name is provided then the current buffer is selected. If a buffer with the specified name already exists then this becomes the current buffer instead, and no new buffer is created.
Insert Buffer Editor Command
- Arguments: buffer-name
Key sequence: None - Inserts the contents of a buffer called buffer-name at the current point. If no buffer name is provided, the contents of the last buffer displayed in the current window are inserted.
Rename Buffer Editor Command
- Arguments: new-name
Key sequence: None - Changes the name of the current buffer to new-name.
Set Buffer Read-OnlyEditor Command
- Arguments: None
Key sequence:Ctrl+X Ctrl+Q - Makes the current buffer read only, so that no modification to its contents are allowed. If it is already read only, this restriction is removed.
Check Buffer ModifiedEditor Command
- Arguments: None
Key sequence:Ctrl+X Shift+~ - Checks whether the current buffer is modified or not.
Buffer Not ModifiedEditor Command
- Arguments: None
Key sequence: +Shift+~
editor:buffer-not-modified-command p &optional buffer
- Makes the current buffer not modified.
- The argument buffer is the name of the buffer to be un-modified. The default is the current buffer.