An editor pane is an EMACS-style editor that has all of the functionality described in the LispWorks Guide To The Editor .
The text in the editor pane.
If t
the editor pane will accept input from the mouse and keyboard.
The name of the editor buffer.
The accessor editor-pane-text
is provided to read and write the text in the editor buffer. The accessor editor-pane-enabled
is used to enable and disable the editor (when it is disabled, it ignores all input from the mouse and keyboard).
The editor-pane
stores text in buffers which are uniquely named, and so to create an editor-pane
using an existing buffer you should pass the buffer-name . To create an editor-pane
with a new buffer, pass a buffer-name that does not match any existing buffer. If buffer-name is not passed, then the editor-pane
uses some existing buffer.
(capi:contain (make-instance 'capi:editor-pane
:text "Hello world"))
(setq editor (capi:contain
(make-instance 'capi:editor-pane
:text "Hello world"
:enabled nil)
:process nil))
(setf (capi:editor-pane-enabled editor) t)
(setf (capi:editor-pane-text editor)
"New text")