aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2012-10-21 19:18:58 -0700
committerGlenn Morris2012-10-21 19:18:58 -0700
commit5fb904b0e48f82da36b4d54b467450a0b39afa27 (patch)
tree66745bd8aace70f5fcb65b8f895d5bbb83386c7d /doc
parentef44695952ad2baac8a111fb3012ec16c74fdd62 (diff)
downloademacs-5fb904b0e48f82da36b4d54b467450a0b39afa27.tar.gz
emacs-5fb904b0e48f82da36b4d54b467450a0b39afa27.zip
* doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/tips.texi19
2 files changed, 15 insertions, 8 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index acf6f8a51ff..b99eca41644 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12012-10-22 Glenn Morris <rgm@gnu.org>
2
3 * tips.texi (Coding Conventions): Recommend cl-lib over cl.
4
12012-10-15 Chong Yidong <cyd@gnu.org> 52012-10-15 Chong Yidong <cyd@gnu.org>
2 6
3 * macros.texi (Defining Macros): defmacro is now a macro. 7 * macros.texi (Defining Macros): defmacro is now a macro.
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index 0c7282c3586..4336baa128f 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -120,15 +120,18 @@ library when needed. This way people who don't use those aspects of
120your file do not need to load the extra library. 120your file do not need to load the extra library.
121 121
122@item 122@item
123Please don't require the @code{cl} package of Common Lisp extensions at 123If you need Common Lisp extensions, use the @code{cl-lib} library
124run time. Use of this package is optional, and it is not part of the 124rather than the old @code{cl} library. The latter does not
125standard Emacs namespace. If your package loads @code{cl} at run time, 125use a clean namespace (i.e., its definitions do not
126that could cause name clashes for users who don't use that package. 126start with a @samp{cl-} prefix). If your package loads @code{cl} at
127 127run time, that could cause name clashes for users who don't use that
128However, there is no problem with using the @code{cl} package at 128package.
129compile time, with @code{(eval-when-compile (require 'cl))}. That's 129
130There is no problem with using the @code{cl} package at @emph{compile}
131time, with @code{(eval-when-compile (require 'cl))}. That's
130sufficient for using the macros in the @code{cl} package, because the 132sufficient for using the macros in the @code{cl} package, because the
131compiler expands them before generating the byte-code. 133compiler expands them before generating the byte-code. It is still
134better to use the more modern @code{cl-lib} in this case, though.
132 135
133@item 136@item
134When defining a major mode, please follow the major mode 137When defining a major mode, please follow the major mode