comparison lispref/edebug.texi @ 60616:f028c143bfe6

(Instrumenting Macro Calls): Fix typos.
author Lute Kamstra <lute@gnu.org>
date Tue, 15 Mar 2005 17:27:28 +0000
parents f779a0469755
children e6c6bee5ad7f 30ad2795fdab
comparison
equal deleted inserted replaced
60615:643e6516a779 60616:f028c143bfe6
1072 in the macro body, or when the resulting expansion is evaluated, or any 1072 in the macro body, or when the resulting expansion is evaluated, or any
1073 time later.) 1073 time later.)
1074 1074
1075 Therefore, you must define an Edebug specification for each macro 1075 Therefore, you must define an Edebug specification for each macro
1076 that Edebug will encounter, to explain the format of calls to that 1076 that Edebug will encounter, to explain the format of calls to that
1077 macro. To do this, add an @code{edebug} declaration to the macro 1077 macro. To do this, add a @code{debug} declaration to the macro
1078 definition. Here is a simple example that shows the specification for 1078 definition. Here is a simple example that shows the specification for
1079 the @code{for} example macro (@pxref{Argument Evaluation}). 1079 the @code{for} example macro (@pxref{Argument Evaluation}).
1080 1080
1081 @example 1081 @example
1082 (defmacro for (var from init to final do &rest body) 1082 (defmacro for (var from init to final do &rest body)
1093 arguments. @xref{Defining Macros}, for more explanation of 1093 arguments. @xref{Defining Macros}, for more explanation of
1094 the @code{declare} form. 1094 the @code{declare} form.
1095 1095
1096 You can also define an edebug specification for a macro separately 1096 You can also define an edebug specification for a macro separately
1097 from the macro definition with @code{def-edebug-spec}. Adding 1097 from the macro definition with @code{def-edebug-spec}. Adding
1098 @code{edebug} declarations is preferred, and more convenient, for 1098 @code{debug} declarations is preferred, and more convenient, for macro
1099 macro definitions in Lisp, but @code{def-edebug-spec} makes it 1099 definitions in Lisp, but @code{def-edebug-spec} makes it possible to
1100 possible to define Edebug specifications for special forms implemented 1100 define Edebug specifications for special forms implemented in C.
1101 in C.
1102 1101
1103 @deffn Macro def-edebug-spec macro specification 1102 @deffn Macro def-edebug-spec macro specification
1104 Specify which expressions of a call to macro @var{macro} are forms to be 1103 Specify which expressions of a call to macro @var{macro} are forms to be
1105 evaluated. @var{specification} should be the edebug specification. 1104 evaluated. @var{specification} should be the edebug specification.
1106 It is not evaluated. 1105 It is not evaluated.