# HG changeset patch # User Gerd Moellmann # Date 1017000208 0 # Node ID ee7e76098967cde81b7c1f2e6cc0324bbb658cf9 # Parent 098a9d37bf118011b84685c78bddf567052d8d21 Declarations in macros. diff -r 098a9d37bf11 -r ee7e76098967 etc/NEWS --- a/etc/NEWS Sun Mar 24 19:53:11 2002 +0000 +++ b/etc/NEWS Sun Mar 24 20:03:28 2002 +0000 @@ -576,6 +576,22 @@ * 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