Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4469ed01
Commit
4469ed01
authored
Jun 07, 2006
by
Eli Zaretskii
Browse files
(Eval During Compile): Fix a typo. Add index entries for possible uses of
eval-when-compile.
parent
26c9afc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lispref/compile.texi
lispref/compile.texi
+3
-2
No files found.
lispref/compile.texi
View file @
4469ed01
...
...
@@ -435,15 +435,16 @@ compiler becomes a constant which appears in the compiled program. If
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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment