diff options
| author | Gerd Moellmann | 2002-03-24 20:03:28 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2002-03-24 20:03:28 +0000 |
| commit | ee9e0c25894d1f379e2ea38ac4f71fbae4cfee26 (patch) | |
| tree | 96150bdf38dcd511ef7f65ba329412bce7c8c9ce | |
| parent | 0af6533d453051039f65a2bfbd7a2f957576acd7 (diff) | |
| download | emacs-ee9e0c25894d1f379e2ea38ac4f71fbae4cfee26.tar.gz emacs-ee9e0c25894d1f379e2ea38ac4f71fbae4cfee26.zip | |
Declarations in macros.
| -rw-r--r-- | etc/NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -576,6 +576,22 @@ SQL buffer. | |||
| 576 | 576 | ||
| 577 | * Lisp Changes in Emacs 21.3 | 577 | * Lisp Changes in Emacs 21.3 |
| 578 | 578 | ||
| 579 | ** The `defmacro' form may contain declarations specifying how to | ||
| 580 | indent the macro in Lisp mode and how to debug it with Edebug. The | ||
| 581 | syntax of defmacro has been extended to | ||
| 582 | |||
| 583 | (defmacro NAME LAMBDA-LIST [DOC-STRING] [DECLARATION ...] ...) | ||
| 584 | |||
| 585 | DECLARATION is a list `(declare DECLARATION-SPECIFIER ...)'. The | ||
| 586 | declaration specifiers supported are: | ||
| 587 | |||
| 588 | (indent INDENT) | ||
| 589 | Set NAME's `lisp-indent-function' property to INDENT. | ||
| 590 | |||
| 591 | (edebug DEBUG) | ||
| 592 | Set NAME's `edebug-form-spec' property to DEBUG. (This is | ||
| 593 | equivalent to writing a `def-edebug-spec' for the macro. | ||
| 594 | |||
| 579 | ** Interactive commands can be remapped through keymaps. | 595 | ** Interactive commands can be remapped through keymaps. |
| 580 | 596 | ||
| 581 | This is an alternative to using defadvice or substitute-key-definition | 597 | This is an alternative to using defadvice or substitute-key-definition |