From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: About equality in Emacs Date: Mon, 04 Feb 2013 14:59:45 +0100 Message-ID: <87wquogoxa.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359986311 6911 80.91.229.3 (4 Feb 2013 13:58:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2013 13:58:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 04 14:58:52 2013 Return-path: Envelope-to: geh-help-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 1U2MZM-0003oB-B3 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Feb 2013 14:58:48 +0100 Original-Received: from localhost ([::1]:50000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2MZ3-0001Pd-RJ for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Feb 2013 08:58:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2MYu-0001PW-Ut for help-gnu-emacs@gnu.org; Mon, 04 Feb 2013 08:58:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2MYn-0005zt-41 for help-gnu-emacs@gnu.org; Mon, 04 Feb 2013 08:58:20 -0500 Original-Received: from mout.web.de ([212.227.17.12]:50719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2MYm-0005zZ-R9 for help-gnu-emacs@gnu.org; Mon, 04 Feb 2013 08:58:13 -0500 Original-Received: from drachen.dragon ([188.98.97.108]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Lcgp5-1UiG4y1bGx-00jzB5; Mon, 04 Feb 2013 14:58:11 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Michael Heerdegen's message of "Sun, 03 Feb 2013 17:58:18 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) X-Provags-ID: V02:K0:7dCv5gH0OqEuG/AZM9ntaf9zgTMCdbc8nPOcaiu6dX2 C6xKN3nutTsQEYA5ROiqFeY9I0W372uJYUQaT2aMf+HHba4H5O v2o4GGFcc7uagi4dVYQOOtRpmYexYQeW5Ai3FdEAw6MjOh+oX4 wNH2uwpBOqcLysZp73wp/N+qRbMHjeNQARP1F2Ev69V5vtAvpW TuZscOe4OOBjf+jRQysFe+TDujf71J10ExySpa5acE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88945 Archived-At: Michael Heerdegen 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.