Create a new Emacs buffer with the specified name. If a buffer with the same name already exists, it is cleared.
| name |
The name of the new buffer. Convention has it that generated buffers (those which do not belong to a file) should start and end with an asterisk *. |
Retrieve an instance by its name.
| name |
The name of the buffer. |
Switch to this buffer in Emacs, making it the current buffer.
| keySeq |
A key sequence. |
| func |
A function to call when that key sequence is invoked. |
Insert text.
| string |
The text which should be inserted. |
Insert a newline.
Move the cursor (point in Emacs jargon) to the beginning of the buffer.
Move point to the end of the buffer.
Move point to a specific character position.
| position |
An integer. |
Create a multistate button.
| states |
An array of state names. |
| action |
A function to call when the button state changes. |
| prefix |
Text to insert before the current state. |
| suffix |
Text to insert after the current state. |
Create a button which will close this buffer.
Create a field which can be edited inline.
| tag |
The label of the field. |
| value |
The default content, a string. |
| action |
A function to call when the user submits the content by pressing enter. |
Close this buffer.