GNU bug report logs - #13620
24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql'

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Sun, 3 Feb 2013 16:54:02 UTC

Severity: minor

Found in version 24.2.92

Fixed in version 24.2.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13620 in the body.
You can then email your comments to 13620 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13620; Package emacs. (Sun, 03 Feb 2013 16:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 03 Feb 2013 16:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql'
Date: Sun, 03 Feb 2013 17:53:33 +0100
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 <at> 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





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 03 Feb 2013 19:42:02 GMT) Full text and rfc822 format available.

Notification sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
bug acknowledged by developer. (Sun, 03 Feb 2013 19:42:02 GMT) Full text and rfc822 format available.

Message #10 received at 13620-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 13620-done <at> debbugs.gnu.org
Subject: Re: bug#13620: 24.2.92;
	Doc: (cl) Equality Predicates: unclear role of `eql'
Date: Sun, 03 Feb 2013 14:40:40 -0500
Version: 24.2.93

OK.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Mar 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.