aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-02-03 11:40:00 -0800
committerGlenn Morris2013-02-03 11:40:00 -0800
commit72ff76bbc2adc17dbe364dee150dfca9f627e467 (patch)
tree67f279038605e9550f874e3fd9df997f3499679d
parentd23b0804fb3601e87762a1f2ea628949bb05f929 (diff)
downloademacs-72ff76bbc2adc17dbe364dee150dfca9f627e467.tar.gz
emacs-72ff76bbc2adc17dbe364dee150dfca9f627e467.zip
* doc/misc/cl.texi (Equality Predicates): Fix eq/eql pedantry.
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/cl.texi6
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index e3ee947fe24..1fc58f9fa4c 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12013-02-03 Glenn Morris <rgm@gnu.org>
2
3 * cl.texi (Equality Predicates): Fix eq/eql pedantry.
4
12013-01-13 Bastien Guerry <bzg@gnu.org> 52013-01-13 Bastien Guerry <bzg@gnu.org>
2 6
3 * org.texi (Installation): Simplify. 7 * org.texi (Installation): Simplify.
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index ae96f2c5cb8..eb37829e9fa 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -817,8 +817,10 @@ not compare strings against vectors of integers.
817Also note that the Common Lisp functions @code{member} and @code{assoc} 817Also note that the Common Lisp functions @code{member} and @code{assoc}
818use @code{eql} to compare elements, whereas Emacs Lisp follows the 818use @code{eql} to compare elements, whereas Emacs Lisp follows the
819MacLisp tradition and uses @code{equal} for these two functions. 819MacLisp tradition and uses @code{equal} for these two functions.
820In Emacs, use @code{memq} (or @code{cl-member}) and @code{assq} (or 820The functions @code{cl-member} and @code{cl-assoc} use @code{eql},
821@code{cl-assoc}) to get functions which use @code{eql} for comparisons. 821as in Common Lisp. The standard Emacs Lisp functions @code{memq} and
822@code{assq} use @code{eq}, so you can use these if you do not care
823about the difference between @code{eq} and @code{eql}.
822 824
823@node Control Structure 825@node Control Structure
824@chapter Control Structure 826@chapter Control Structure