diff options
| author | Richard M. Stallman | 2006-07-12 16:07:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-07-12 16:07:17 +0000 |
| commit | 9aa9b967b95678f96cdbbeeae61c8b29bf7fc589 (patch) | |
| tree | 3c0f9ace973142df17c887173c3676c11a50ed8e | |
| parent | f911a4454addf2b3d39f52c6e7ac83d5d1c27032 (diff) | |
| download | emacs-9aa9b967b95678f96cdbbeeae61c8b29bf7fc589.tar.gz emacs-9aa9b967b95678f96cdbbeeae61c8b29bf7fc589.zip | |
(Coding Conventions): Explain why use cl at compile time.
| -rw-r--r-- | lispref/tips.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lispref/tips.texi b/lispref/tips.texi index c8cd4770113..4dc24196272 100644 --- a/lispref/tips.texi +++ b/lispref/tips.texi | |||
| @@ -119,8 +119,9 @@ standard Emacs namespace. If your package loads @code{cl} at run time, | |||
| 119 | that could cause name clashes for users who don't use that package. | 119 | that could cause name clashes for users who don't use that package. |
| 120 | 120 | ||
| 121 | However, there is no problem with using the @code{cl} package at | 121 | However, there is no problem with using the @code{cl} package at |
| 122 | compile time, e.g. for macros, with | 122 | compile time, with @code{(eval-when-compile (require 'cl))}. That's |
| 123 | @code{(eval-when-compile (require 'cl))}. | 123 | sufficient for using the macros in the @code{cl} package, because the |
| 124 | compiler expands them before generating the byte-code. | ||
| 124 | 125 | ||
| 125 | @item | 126 | @item |
| 126 | When defining a major mode, please follow the major mode | 127 | When defining a major mode, please follow the major mode |