From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' Date: Sun, 03 Feb 2013 17:53:33 +0100 Message-ID: <87pq0hibjm.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359910386 7369 80.91.229.3 (3 Feb 2013 16:53:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Feb 2013 16:53:06 +0000 (UTC) To: 13620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 03 17:53:26 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U22oo-0005yu-Dq for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Feb 2013 17:53:26 +0100 Original-Received: from localhost ([::1]:40429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22oW-0001N6-1b for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Feb 2013 11:53:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22oS-0001Lp-74 for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:53:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U22oQ-0003rq-SD for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:53:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22oQ-0003rm-Oo for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U22pO-0005Zb-FO for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Feb 2013 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13620 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135991038821354 (code B ref -1); Sun, 03 Feb 2013 16:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Feb 2013 16:53:08 +0000 Original-Received: from localhost ([127.0.0.1]:34501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U22oW-0005YM-41 for submit@debbugs.gnu.org; Sun, 03 Feb 2013 11:53:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34536) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U22oU-0005YE-Kr for submit@debbugs.gnu.org; Sun, 03 Feb 2013 11:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U22nV-0003SN-OM for submit@debbugs.gnu.org; Sun, 03 Feb 2013 11:52:06 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:49973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22nV-0003SH-KB for submit@debbugs.gnu.org; Sun, 03 Feb 2013 11:52:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22nU-0001Hr-6d for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U22nS-0003RQ-NA for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:52:04 -0500 Original-Received: from mout.web.de ([212.227.17.12]:51764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U22nS-0003R7-Dr for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2013 11:52:02 -0500 Original-Received: from drachen.dragon ([188.98.97.108]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0LgYSP-1UnUQ90cwH-00npYH; Sun, 03 Feb 2013 17:52:00 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) X-Provags-ID: V02:K0:C04woUhM8o2BVvCVNZ7W7x0djbP+JdU9FVs+Td3luTN JG2yXbrQniKuyqc4wJK7mk/VTZeVWJI3LB4nC0maUCvwiAg9fo d0TliHCuxh7DalJnVucMTZBZsNUbLwJiffNd3XMoJ5C/9COSLM IZbv4ZjpKzRXuk2F933e99j2ZLQpyItBfu1JGCiXnLTBxUI3c3 m96HYC6EbHG0TJ83ar6z5rxTCkjGq9Jmk6T3ydQbx0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70651 Archived-At: 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