1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00

* doc/misc/cl.texi (Equality Predicates): Fix eq/eql pedantry.

This commit is contained in:
Glenn Morris 2013-02-03 11:40:00 -08:00
parent d23b0804fb
commit 72ff76bbc2
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2013-02-03 Glenn Morris <rgm@gnu.org>
* cl.texi (Equality Predicates): Fix eq/eql pedantry.
2013-01-13 Bastien Guerry <bzg@gnu.org>
* org.texi (Installation): Simplify.

View File

@ -817,8 +817,10 @@ not compare strings against vectors of integers.
Also note that the Common Lisp functions @code{member} and @code{assoc}
use @code{eql} to compare elements, whereas Emacs Lisp follows the
MacLisp tradition and uses @code{equal} for these two functions.
In Emacs, use @code{memq} (or @code{cl-member}) and @code{assq} (or
@code{cl-assoc}) to get functions which use @code{eql} for comparisons.
The functions @code{cl-member} and @code{cl-assoc} use @code{eql},
as in Common Lisp. The standard Emacs Lisp functions @code{memq} and
@code{assq} use @code{eq}, so you can use these if you do not care
about the difference between @code{eq} and @code{eql}.
@node Control Structure
@chapter Control Structure