Mercurial > emacs
comparison lispref/edebug.texi @ 52142:187f0047b980
(Instrumenting Macro Calls): Don't define `declare' here;
instead xref Defining Macros.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 06 Aug 2003 01:25:23 +0000 |
parents | 55fb0658914a |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
52141:a5d4d0a7b284 | 52142:187f0047b980 |
---|---|
1075 For example, (for i from 1 to 10 do (print i))." | 1075 For example, (for i from 1 to 10 do (print i))." |
1076 (declare (edebug symbolp "from" form "to" form "do" &rest form)) | 1076 (declare (edebug symbolp "from" form "to" form "do" &rest form)) |
1077 ...) | 1077 ...) |
1078 @end example | 1078 @end example |
1079 | 1079 |
1080 @defspec declare (edebug @var{specification}) | 1080 The Edebug specifation says which parts of a call to the macro are |
1081 Specify which expressions of a call to the macro in which the | 1081 forms to be evaluated. For simple macros, the @var{specification} |
1082 declaration appears are forms to be evaluated. For simple macros, the | 1082 often looks very similar to the formal argument list of the macro |
1083 @var{specification} often looks very similar to the formal argument list | 1083 definition, but specifications are much more general than macro |
1084 of the macro definition, but specifications are much more general than | 1084 arguments. @xref{Defining Macros}, for more explanation of |
1085 macro arguments. | 1085 the @code{declare} special form. |
1086 @end defspec | 1086 |
1087 | 1087 You can also define an edebug specification for a macro separately |
1088 You can also define an edebug specification for a macro separately | |
1089 from the macro definition with @code{def-edebug-spec}. Adding | 1088 from the macro definition with @code{def-edebug-spec}. Adding |
1090 @code{edebug} declarations is preferred, and more convenient, for | 1089 @code{edebug} declarations is preferred, and more convenient, for |
1091 macro definitions in Lisp, but @code{def-edebug-spec} makes it | 1090 macro definitions in Lisp, but @code{def-edebug-spec} makes it |
1092 possible to define Edebug specifications for special forms implemented | 1091 possible to define Edebug specifications for special forms implemented |
1093 in C. | 1092 in C. |