with-features [Macro]


Purpose

The with-features macro effectively unsets all Loom features, sets only a specified group of features, executes a body of code, and then resets all features to their original values.

Syntax

with-features (&rest features) &body body

Arguments

The features argument is a Loom feature, or a list of Loom features, to be temporarily set. The following features are available:

The body argument is one or more Lisp forms to be executed with the indicated feature settings.

Value

The with-features macro returns the value of the last form in body.

Remarks

The :open-world and :closed-world features cannot be temporarily set.

Examples

(with-features (:emit-match-stars :display-match-changes) 
    (do-this) 
    (do-that))

See Also

Last modified: Jun 1 1995