Up: Drei Concepts


18.1.1 Special Variables

Drei commands are meant to work by using the values of a number of special variables bound by Drei during its pseudo command loop. Here is a list of them:

— Variable: *current-window*

Somewhat counter-intuitively, the Drei instance. Not necessarily the same as the editor pane.

— Variable: *current-buffer*

The buffer of the Drei instance the command is being executed for.

— Variable: *current-mark*

The mark of the Drei instance.

— Variable: *current-point*

The point of the Drei instance.

— Variable: *current-syntax*

The syntax of *current-buffer*.

— Variable: *kill-ring*

The kill-ring object of the Drei instance.

— Variable: *minibuffer*

The minibuffer of the Drei instance, which is where commands should print information and other interesting things (using display-message or with-minibuffer-stream). This may be NIL if no minibuffer is associated with the Drei instance.

— Variable: *previous-command*

The previous CLIM command that was executed by the Drei instance.