Next: , Previous:   [Contents][Index]


6 Hemlock Variables

Hemlock implements a system of variables separate from normal Lisp variables for the following reasons:

  1. Hemlock has different scoping rules which are useful in an editor. Hemlock variables can be local to a buffer (page buffers) or a mode (page modes).
  2. Hemlock variables have hooks (page hooks), lists of functions called when someone sets the variable. See variable-value for the arguments Hemlock passes to these hook functions.
  3. There is a database of variable names and documentation which makes it easier to find out what variables exist and what their values mean.