Editor commands are initiated by one or more key sequences . A single key sequence usually involves holding down one of two specially defined modifier keys, while at the same time pressing another key which is usually a character key.
Mac OS users will be familiar with the use of the
key in key sequences such as
. These keys always work in the standard Mac OS way in the LispWorks editor. The remainder of this section describes the use of other modifier key.
The two modifier keys referred to are the
) key and the
When using Emacs emulation on a keyboard without a
) key can be used instead. Note that
must be typed
pressing the required character key, and not held down.
When using Mac OS editor emulation,
is the cancel gesture and you may not have an Emacs Meta key. Therefore LispWorks provides an alternate gesture to access editor commands:
. For example, to invoke the command
Find Source for Dspec
Ctrl+M X Find Source for Dspec
To continue the search, type
You can make either the
key act as the Emacs Meta key. This setting is independent of whether you are using Emacs or Mac OS editor emulation. See the chapter on the Editor tool in the
Common LispWorks User Guide
for instructions on changing editor emulation.
An example of a single key sequence command is
which moves the current point to the start of the line. This command is issued by holding down the
key while at the same time pressing
Some key sequences may require more than one key sequence. For example, the key sequence to save the current buffer to a file is
. Another multi-key sequence is
which saves all buffers to their relevant files. Note that in this case you do not press the
key while pressing
A few commands require both the
key to be held down while pressing the character key.
, used to select the previous buffer displayed, is one such command. If the
key is being used in place of the
key, then this key should be pressed
part of the key sequence.