help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About equality in Emacs


From: Xue Fuqiao
Subject: About equality in Emacs
Date: Sun, 3 Feb 2013 23:01:38 +0800

In the trunk version of (info "(cl) Equality Predicates"):

   Also note that the Common Lisp functions `member' and `assoc' use
`eql' to compare elements, whereas Emacs Lisp follows the MacLisp
tradition and uses `equal' for these two functions.  In Emacs, use
`memq' (or `cl-member') and `assq' (or `cl-assoc') to get functions
which use `eql' for comparisons.

I'm confused with the last sentence.  Don't `memq' and `assq' compare
objects with `eq'?  Why does the manual say that they "get functions
which use `eql' for comparisons"?

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]