6.3 Programming the editor

The editor functions described in this section can be combined and provided with arguments to create new commands. Existing editor commands can also be used in the creation of new commands (see
editor:defcommand
).

Note that all the code found in this chapter is included in the directory
examples/editor
in the directory defined by the variable
*lispworks-directory*
.

Note: code which modifies the contents of a
capi:editor-pane
(for example a diaplayed editor buffer) must be run only in the interface process of that pane.

The following sections describe editor functions that are not interactive editor commands.