From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Tfardy Newsgroups: gmane.emacs.help Subject: Re: Problem with position and find (cl) Date: Fri, 20 Jun 2008 21:58:25 +0200 Message-ID: <6c2gf4F3eltftU1@mid.individual.net> References: <6c2bb4F3dibi5U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213994447 15492 80.91.229.12 (20 Jun 2008 20:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 20:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 22:41:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9nQG-0007j5-Fj for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2008 22:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:52832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9nPR-0002i8-Bs for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2008 16:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net ay1pGANuHpceGmu14F5UjQL0i9J2/4LHlSUHcyNrzwCd+6hDB9 Cancel-Lock: sha1:MqC1C1WHH0ODa6+Q3IZyN/k8Cu0= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <6c2bb4F3dibi5U1@mid.individual.net> Original-Xref: news.stanford.edu gnu.emacs.help:159641 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54991 Archived-At: Marc Tfardy schrieb: > I try with: > (member '(2) '((1) (2) (3) (4))) > > and this gives a expectet results ((2) (3) (4)), but: > (find '(2) '((1) (2) (3) (4))) > or > (position '(2) '((1) (2) (3) (4))) > > returns nil. Why? But this works: (position '(2) '((1) (2) (3) (4)) :test (lambda (x y) (eq (car x) (car y)))) Maybe position and find (and maybe some others functions) can not compare lists directly? Marc