[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/compile.texi,v
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/compile.texi,v |
Date: |
Sun, 04 Mar 2007 17:55:23 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 07/03/04 17:55:23
Index: compile.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/compile.texi,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- compile.texi 16 Jan 2007 03:28:54 -0000 1.29
+++ compile.texi 4 Mar 2007 17:55:23 -0000 1.30
@@ -454,11 +454,10 @@
(require 'my-macro-package)) ;; only macros needed from this
@end lisp
-The same sort of thing goes for macros or @code{defalias}es defined
-locally and only for use within the file. They can be defined while
-compiling, but then not needed when executing. This is good for code
-that's only a fallback for compatibility with other versions of Emacs.
-For example.
+The same sort of thing goes for macros and @code{defsubst} functions
+defined locally and only for use within the file. They are needed for
+compiling the file, but in most cases they are not needed for
+execution of the compiled file. For example,
@lisp
(eval-when-compile
@@ -467,6 +466,10 @@
(compatibility code))))
@end lisp
address@hidden
+This is often good for code that's only a fallback for compatibility
+with other versions of Emacs.
+
@strong{Common Lisp Note:} At top level, @code{eval-when-compile} is analogous
to the Common
Lisp idiom @code{(eval-when (compile eval) @dots{})}. Elsewhere, the
Common Lisp @samp{#.} reader macro (but not when interpreting) is closer
- [Emacs-diffs] Changes to emacs/lispref/compile.texi,v,
Richard M. Stallman <=