Mercurial > emacs
comparison lispref/tips.texi @ 24799:7f38d541d411
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 31 May 1999 18:09:42 +0000 |
parents | 1e9786a5c63d |
children | 78aaef52e28f |
comparison
equal
deleted
inserted
replaced
24798:6fe40d35360e | 24799:7f38d541d411 |
---|---|
82 @var{foo} without the necessary macro loaded, and that would produce | 82 @var{foo} without the necessary macro loaded, and that would produce |
83 compiled code that won't work right. @xref{Compiling Macros}. | 83 compiled code that won't work right. @xref{Compiling Macros}. |
84 | 84 |
85 Using @code{eval-when-compile} avoids loading @var{bar} when | 85 Using @code{eval-when-compile} avoids loading @var{bar} when |
86 the compiled version of @var{foo} is @emph{used}. | 86 the compiled version of @var{foo} is @emph{used}. |
87 | |
88 @item | |
89 Please don't require the @code{cl} package of Common Lisp extensions at | |
90 run time. Use of this package is optional, and it is not part of the | |
91 standard Emacs namespace. If your package loads @code{cl} at run time, | |
92 that could cause name clashes for users who don't use that package. | |
93 | |
94 However, there is no problem with using the @code{cl} package at compile | |
95 time, for the sake of macros. You do that like this: | |
96 | |
97 @example | |
98 (eval-when-compile (require 'cl)) | |
99 @end example | |
87 | 100 |
88 @item | 101 @item |
89 When defining a major mode, please follow the major mode | 102 When defining a major mode, please follow the major mode |
90 conventions. @xref{Major Mode Conventions}. | 103 conventions. @xref{Major Mode Conventions}. |
91 | 104 |