Next Prev Up Top Contents Index

editor-pane

Class
Summary

An editor pane is an EMACS-style editor that has all of the functionality described in the LispWorks Guide To The Editor .

Superclasses

output-pane

Subclasses

interactive-pane
collector-pane

Slots

text

The text in the editor pane.

enabled

If t the editor pane will accept input from the mouse and keyboard.

buffer-name

The name of the editor buffer.

Accessors

editor-pane-text
editor-pane-enabled

Description

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.

Example
(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")
See also

call-editor
modify-editor-pane-buffer


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index