From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: delq string element in ido Date: Sat, 26 Dec 2009 12:15:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261826152 6418 80.91.229.12 (26 Dec 2009 11:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Dec 2009 11:15:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 26 12:15:44 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 1NOUcZ-0001xZ-GR for ged-emacs-devel@m.gmane.org; Sat, 26 Dec 2009 12:15:43 +0100 Original-Received: from localhost ([127.0.0.1]:34207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOUcZ-0006aM-N9 for ged-emacs-devel@m.gmane.org; Sat, 26 Dec 2009 06:15:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOUcT-0006a9-Qs for emacs-devel@gnu.org; Sat, 26 Dec 2009 06:15:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOUcN-0006Zg-R9 for emacs-devel@gnu.org; Sat, 26 Dec 2009 06:15:36 -0500 Original-Received: from [199.232.76.173] (port=52166 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOUcN-0006ZV-Ch for emacs-devel@gnu.org; Sat, 26 Dec 2009 06:15:31 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:49424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NOUcN-0000hh-9O for emacs-devel@gnu.org; Sat, 26 Dec 2009 06:15:31 -0500 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 70EAA1C001CD; Sat, 26 Dec 2009 12:15:29 +0100 (CET) X-Auth-Info: WBhzaT+GHEwwvpw3+qJYxwakp6vFg9HbsUFmxMnmg3M= Original-Received: from whitebox.home (p508B44A8.dip.t-dialin.net [80.139.68.168]) by mail.mnet-online.de (Postfix) with ESMTP id 5A7F29028D; Sat, 26 Dec 2009 12:15:29 +0100 (CET) Original-Received: by whitebox.home (Postfix, from userid 501) id E29FE1E53AB; Sat, 26 Dec 2009 12:15:24 +0100 (CET) X-Yow: Yow! I forgot my PAIL!! In-Reply-To: (Leo's message of "Sat, 26 Dec 2009 10:49:16 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:118820 Archived-At: Leo writes: > In function `ido-kill-buffer-at-head', there's this form > > (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. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."