unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql'
@ 2013-02-03 16:53 Michael Heerdegen
  2013-02-03 19:40 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Heerdegen @ 2013-02-03 16:53 UTC (permalink / raw)
  To: 13620

Hello Emacs people,

please read this last paragraph in the manual, node (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 think the last sentence is wrong or at least damaged, because `memq'
and `assq' use `eq' (not `eql') for comparison (at least, this is what
the doc of these function says).

This is in emacs-24 as well as in trunk.

I created this report after reading under "About equality in Emacs" in
gnu.emacs.help.  Pascal Bourguignon mentioned that a prior version said

,----------------------------------------------------------------------
| "In Emacs, use `member*' and `assoc*' to get
| functions which use `eql' for comparisons."
`----------------------------------------------------------------------


Thanks,

Michael


In GNU Emacs 24.2.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
 of 2013-01-30 on drachen
Bzr revision: fabian@anue.biz-20130130150258-y2xeua0sy8eruvyb
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 7.0 (wheezy)

Configured using:
 `configure '--prefix=/usr/local/built/''

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql'
  2013-02-03 16:53 bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' Michael Heerdegen
@ 2013-02-03 19:40 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-02-03 19:40 UTC (permalink / raw)
  To: 13620-done

Version: 24.2.93

OK.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-03 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-03 16:53 bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' Michael Heerdegen
2013-02-03 19:40 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).