6.2.3 Macros

Macro: %defgroup INTERNALP (&rest KEYS &key HEADER HIDDEN) &body FORMS

Define a new group.

Package

net.didierverna.clon

Source

group.lisp (file)

Macro: accumulate (INITIAL-VALUE) &body BODY

Accumulate BODY forms in a list beginning with INITIAL-VALUE. INITIAL-VALUE is not evaluated. BODY forms are accumulated only when their value is non-nil.
If nothing to accumulate, then return nil instead of the list of INITIAL-VALUE.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: declare-valid-superclass CLASS SUPERCLASS

Validate SUPERCLASS classes for CLASS classes.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: defabstract CLASS SUPER-CLASSES SLOTS &rest OPTIONS

Like DEFCLASS, but define an abstract class.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: defindent SYMBOL INDENT

Wrapper around ‘clindent’ to avoid quoting SYMBOL and INDENT.

Package

net.didierverna.clon.setup

Source

readtable.lisp (file)

Macro: defoption CLASS SUPERCLASSES SLOTS &rest OPTIONS

Create a new option CLASS and register it with Clon.

Package

net.didierverna.clon

Source

valued.lisp (file)

Macro: do-options (OPT THERE) &body BODY

Execute BODY with OPT bound to every option in THERE.

Package

net.didierverna.clon

Source

synopsis.lisp (file)

Macro: econd &body CLAUSES

Like COND, but signal an error if no clause evaluates to t.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: endpush OBJECT PLACE

Like push, but at the end.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: highlight-property-ecase PROPERTY VALUE &body CLAUSES

Create an ECASE form to extract PROPERTY’s VALUE escape sequence.
Each clause looks like: (PROPERTY-NAME (VALUE-OR-VALUE-LIST ESCAPE-SEQUENCE)*). The value-matching part will itself be enclosed in an ECASE expression.
In addition, the special clause syntax (BOOLEAN <PROPERTY-NAME> <YES> <NO>) is a shortcut for: (PROPERTY-NAME ((on t) YES) ((off nil) NO)).

Package

net.didierverna.clon

Source

sheet.lisp (file)

Macro: map-frames FUNCTION (SHEET &key REVERSE)

Map FUNCTION over SHEET’s frames. If REVERSE, map in reverse order.

Package

net.didierverna.clon

Source

sheet.lisp (file)

Macro: maybe-pop-argument CMDLINE OPTION CMDLINE-ARGUMENT

Pop OPTION’s argument from CMDLINE if needed. If so, store it in CMDLINE-ARGUMENT.

Package

net.didierverna.clon

Source

cmdline.lisp (file)

Macro: maybe-push OBJECT PLACE

Like push, but only if OBJECT is non-nil.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: replace-in-keys (KEY VAL) KEYS THE-KEY FORM

Replace every occurrence of THE-KEY in KEYS with FORM.
At every KEYS round, KEY and VAL are bound to the current key-value pair. FORM is evaluated each time and should return a key-value list.

Package

net.didierverna.clon

Source

util.lisp (file)

Macro: restartable-invalid-negated-syntax-error (OPTION) &body BODY

Restartably throw an invalid-negated-syntax error.
The error relates to the command-line use of OPTION.
BODY constitutes the body of the only restart available,
use-short-call, and should act as if OPTION had been normally called by short name.

Package

net.didierverna.clon

Source

cmdline.lisp (file)

Macro: restartable-spurious-cmdline-argument-error (OPTION NAME ARGUMENT) &body BODY

Restartably throw a spurious-cmdline-argument error.
The error relates to the command-line use of OPTION called by NAME with ARGUMENT.
BODY constitutes the body of the only restart available, discard-argument, and should act as if ARGUMENT had not been provided.

Package

net.didierverna.clon

Source

cmdline.lisp (file)

Macro: with-context-error-handler CONTEXT &body BODY

Execute BODY with CONTEXT’s error handler bound for CONDITION.

Package

net.didierverna.clon

Source

context.lisp (file)

Macro: with-winsize VAR24 (&rest FIELD-VALUES-25) &body BODY26
Package

net.didierverna.clon

Source

/Users/didier/.cache/common-lisp/sbcl-2.1.2.72-f990ff7ad-macosx-x64/Users/didier/Documents/Science/Software/Common Lisp/clon/termio/sbcl/constants.lisp-temp