# HG changeset patch # User Eli Zaretskii # Date 1149702783 0 # Node ID 1d43c64436be3b06ef295e585f40b74b3b4bc2d7 # Parent 70b055c73c8ce704d5cfc28f4762f11a905a1445 (Eval During Compile): Fix a typo. Add index entries for possible uses of eval-when-compile. diff -r 70b055c73c8c -r 1d43c64436be lispref/compile.texi --- a/lispref/compile.texi Wed Jun 07 16:39:16 2006 +0000 +++ b/lispref/compile.texi Wed Jun 07 17:53:03 2006 +0000 @@ -435,15 +435,16 @@ you load the source file, rather than compiling it, @var{body} is evaluated normally. +@cindex compile-time constant If you have a constant that needs some calculation to produce, -@code{eval-when-compile} can do that done at compile-time. For -example, +@code{eval-when-compile} can do that at compile-time. For example, @lisp (defvar my-regexp (eval-when-compile (regexp-opt '("aaa" "aba" "abb")))) @end lisp +@cindex macros, at compile time If you're using another package, but only need macros from it (the byte compiler will expand those), then @code{eval-when-compile} can be used to load it for compiling, but not executing. For example,