From: Gerd Moellmann Date: Sun, 24 Mar 2002 20:03:28 +0000 (+0000) Subject: Declarations in macros. X-Git-Tag: ttn-vms-21-2-B4~15990 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee9e0c25894d1f379e2ea38ac4f71fbae4cfee26;p=emacs.git Declarations in macros. --- diff --git a/etc/NEWS b/etc/NEWS index ebd8af0b784..1dc31a24abd 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -576,6 +576,22 @@ SQL buffer. * Lisp Changes in Emacs 21.3 +** The `defmacro' form may contain declarations specifying how to +indent the macro in Lisp mode and how to debug it with Edebug. The +syntax of defmacro has been extended to + + (defmacro NAME LAMBDA-LIST [DOC-STRING] [DECLARATION ...] ...) + +DECLARATION is a list `(declare DECLARATION-SPECIFIER ...)'. The +declaration specifiers supported are: + +(indent INDENT) + Set NAME's `lisp-indent-function' property to INDENT. + +(edebug DEBUG) + Set NAME's `edebug-form-spec' property to DEBUG. (This is + equivalent to writing a `def-edebug-spec' for the macro. + ** Interactive commands can be remapped through keymaps. This is an alternative to using defadvice or substitute-key-definition