EmacsBuffer:
Filter:
Classes (extension) | Frontends

EmacsBuffer
ExtensionExtension

Lightweight Emacs User Interface
Location: NOT INSTALLED!

Class Methods

.new

Create a new Emacs buffer with the specified name. If a buffer with the same name already exists, it is cleared.

Arguments:

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 *.

.at

Retrieve an instance by its name.

Arguments:

name

The name of the buffer.

Inherited class methods

Instance Methods

.front

Switch to this buffer in Emacs, making it the current buffer.

.defineKey

Arguments:

keySeq

A key sequence.

func

A function to call when that key sequence is invoked.

.insert

Insert text.

Arguments:

string

The text which should be inserted.

.newline

Insert a newline.

.gotoBob

Move the cursor (point in Emacs jargon) to the beginning of the buffer.

.gotoEob

Move point to the end of the buffer.

.goto

Move point to a specific character position.

Arguments:

position

An integer.

.button

Create a multistate button.

Arguments:

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.

.closeButton

Create a button which will close this buffer.

.editableField

Create a field which can be edited inline.

Arguments:

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.

.free

Close this buffer.

Inherited instance methods