From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: delq string element in ido Date: Sat, 26 Dec 2009 12:13:22 +0000 Message-ID: <20a0c1020912260413j733cda64r68141ad90928113c@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261829620 13169 80.91.229.12 (26 Dec 2009 12:13:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Dec 2009 12:13:40 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 26 13:13:33 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NOVWV-0006gT-8u for ged-emacs-devel@m.gmane.org; Sat, 26 Dec 2009 13:13:31 +0100 Original-Received: from localhost ([127.0.0.1]:38353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOVWV-0002EG-BU for ged-emacs-devel@m.gmane.org; Sat, 26 Dec 2009 07:13:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOVWQ-0002Cf-Nq for emacs-devel@gnu.org; Sat, 26 Dec 2009 07:13:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOVWP-0002B0-A2 for emacs-devel@gnu.org; Sat, 26 Dec 2009 07:13:26 -0500 Original-Received: from [199.232.76.173] (port=42521 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOVWP-0002Av-7l for emacs-devel@gnu.org; Sat, 26 Dec 2009 07:13:25 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.144]:30969) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NOVWO-0007GC-T5 for emacs-devel@gnu.org; Sat, 26 Dec 2009 07:13:25 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 4so383654eyg.34 for ; Sat, 26 Dec 2009 04:13:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MBo43D8hYS9NNd7Rcrd7BybMf3p+ibiXpx9ZIHspB4s=; b=ukR+YqGTz33GTRZzM6d4PNtCAeVReB3DuqWWt0SkjEfHExPyUPTWz130Dtix7BtqqB hyNuFFyPAetnKS0peOy5nRHNemJeiY6s457lqb5893oNONimYAJSLPAJ8gOuHpLmFRYy lakoNyXVvgpruhUXAiUlsBLSn+zqkGpATJnX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=eeJYAxMYD5lm+ETashYI5YT6RJ071Z/p7BvaeUc/XUiBYraAQM3fRy931QeTL35fUw 5o1Xh5xJrhLwTiOU6VKmhpLPqneY7kUHXMq6xsiYQzs/8b2yiQrMsRJwk4ZUxcZJau1Y 4oYajePXHjMOKp1y9/1ij83AFKs8gEb4OU6+U= Original-Received: by 10.216.85.137 with SMTP id u9mr5141088wee.214.1261829602526; Sat, 26 Dec 2009 04:13:22 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118821 Archived-At: 2009/12/26 Andreas Schwab : > Leo writes: > >> In function `ido-kill-buffer-at-head', there's this form >> >> =A0 =A0 (delq buf ido-cur-list) >> >> where buf is a string and ido-cur-list is a list of strings. I get this >> by stepping through this function and checking the values of buf and >> ido-cur-list. But delq uses `eq' to compare. Any idea why this function >> still succeeds? > > Because `eq' returns t for identical Lisp objects. > > Andreas. I don't quite get it. If buf holds "str1" and ido-cur-list '("str1" "str2" "str3"), (delq buf ido-cur-list) does not return '("str2" "str3"). But it does inside ido-kill-buffer-at-head. That's where I am confused. Could you explain a bit more? Thanks. Leo