From unknown Sat Sep 13 17:18:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' 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: To: 13620@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.135991038821354 (code B ref -1); Sun, 03 Feb 2013 16:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Feb 2013 16:53:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 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 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 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 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 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 From: Michael Heerdegen Date: Sun, 03 Feb 2013 17:53:33 +0100 Message-ID: <87pq0hibjm.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From unknown Sat Sep 13 17:18:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Michael Heerdegen Subject: bug#13620: closed (Re: bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql') Message-ID: References: <87pq0hibjm.fsf@web.de> X-Gnu-PR-Message: they-closed 13620 X-Gnu-PR-Package: emacs Reply-To: 13620@debbugs.gnu.org Date: Sun, 03 Feb 2013 19:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1359920522-3736-1" This is a multi-part message in MIME format... ------------=_1359920522-3736-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13620@debbugs.gnu.org. --=20 13620: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13620 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1359920522-3736-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13620-done) by debbugs.gnu.org; 3 Feb 2013 19:41:46 +0000 Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U25Ri-0000xp-3V for submit@debbugs.gnu.org; Sun, 03 Feb 2013 14:41:46 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:52210) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U25Rf-0000xg-Bm for 13620-done@debbugs.gnu.org; Sun, 03 Feb 2013 14:41:43 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U25Qe-0003jy-OT; Sun, 03 Feb 2013 14:40:40 -0500 From: Glenn Morris To: 13620-done@debbugs.gnu.org Subject: Re: bug#13620: 24.2.92; Doc: (cl) Equality Predicates: unclear role of `eql' References: <87pq0hibjm.fsf@web.de> X-Spook: digicash genetic strategic warfare World Trade Center X-Ran: PUcU"*R]v7Q'1>LH50PFIx!0REkLgEP1k^&mTJ?N~v>h-:{Bj%'@Z1CkS0'v(o\k59buB9 X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 03 Feb 2013 14:40:40 -0500 In-Reply-To: <87pq0hibjm.fsf@web.de> (Michael Heerdegen's message of "Sun, 03 Feb 2013 17:53:33 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13620-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Version: 24.2.93 OK. ------------=_1359920522-3736-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Feb 2013 16:53:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 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 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 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 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 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 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 ------------=_1359920522-3736-1--