[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About equality in Emacs
From: |
Michael Heerdegen |
Subject: |
Re: About equality in Emacs |
Date: |
Mon, 04 Feb 2013 14:59:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> > 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"?
>
> Doesn't make much sense to me as well. I filed a bug report; it's now
> bug#13620. I think this sentence was just damaged when it was updated.
Has already been fixed by Glenn Morris. This is the new version of the
paragraph:
,----------------------------------------------------------------------
| 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. The functions
| `cl-member' and `cl-assoc' use `eql', as in Common Lisp. The standard
| Emacs Lisp functions `memq' and `assq' use `eq', so you can use these
| if you do not care about the difference between `eq' and `eql'.
|
`----------------------------------------------------------------------
Thanks Xue for finding this.
Regards,
Michael.