IN-MODE : UTILITY

IN-MODE is an utility.
(IN-MODE mode form1 ... formn) is an extremely useful macro.
It will locally bind all flags and parameters affected by mode to the
value in the mode and the execute form1 ... formn. Note that no initfn
is called when the flags are set. Note also that the macro (of course!)
is expanded at compile-time and therefore changing the definition of
mode will have no effect on the execution of form1 ... formn until
the IN-MODE is recompiled or loaded in uncompiled form. Examples
of uses are
(IN-MODE SCRIBE-DOC (MSG (A . GWFF))) will print the gwff A in style
Scribe.
(IN-MODE RE-READ (MSG (A . GWFF))) will print the gwff A in such a
way that it can be read back.

TPS documentation homepage


© 1988-99, Carnegie Mellon University.

TPS homepage