diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-05 10:31:33 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-05 10:31:36 +0200 |
commit | 58b0bcd16df83d914fe4d538e6be88cac9574906 (patch) | |
tree | 034b4b4c2e14033522b169b0fab7a097667e8b57 | |
parent | 483c5e953c12a95382bef4a3b6769a680c32fe86 (diff) | |
download | emacs-58b0bcd16df83d914fe4d538e6be88cac9574906.tar.gz emacs-58b0bcd16df83d914fe4d538e6be88cac9574906.tar.bz2 emacs-58b0bcd16df83d914fe4d538e6be88cac9574906.zip |
Use @defmac on eval-{and,when}-compile
* doc/lispref/compile.texi (Eval During Compile): Use @defmac
instead of @defspec on two macros (bug#47862).
-rw-r--r-- | doc/lispref/compile.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 66242343157..bf420040950 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi @@ -361,7 +361,7 @@ it does nothing. It always returns @var{function}. These features permit you to write code to be evaluated during compilation of a program. -@defspec eval-and-compile body@dots{} +@defmac eval-and-compile body@dots{} This form marks @var{body} to be evaluated both when you compile the containing code and when you run it (whether compiled or not). @@ -386,9 +386,9 @@ If functions are defined programmatically (with @code{fset} say), then @code{eval-and-compile} can be used to have that done at compile-time as well as run-time, so calls to those functions are checked (and warnings about ``not known to be defined'' suppressed). -@end defspec +@end defmac -@defspec eval-when-compile body@dots{} +@defmac eval-when-compile body@dots{} This form marks @var{body} to be evaluated at compile time but not when the compiled program is loaded. The result of evaluation by the compiler becomes a constant which appears in the compiled program. If @@ -434,7 +434,7 @@ with other versions of Emacs. Lisp idiom @code{(eval-when (compile eval) @dots{})}. Elsewhere, the Common Lisp @samp{#.} reader macro (but not when interpreting) is closer to what @code{eval-when-compile} does. -@end defspec +@end defmac @node Compiler Errors @section Compiler Errors |