From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: To be a list or not Date: Sat, 29 Dec 2007 01:18:34 +0100 Message-ID: <4775925A.6020300@gmail.com> References: <477568AC.7090304@gmail.com> <18293.28417.122146.27016@kahikatea.snap.net.nz> <47758120.5000507@gmail.com> <18293.35504.41211.784522@kahikatea.snap.net.nz> 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 1198887551 16392 80.91.229.12 (29 Dec 2007 00:19:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 00:19:11 +0000 (UTC) Cc: Emacs Devel To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 29 01:19:24 2007 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 1J8PQA-0008Bm-5E for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2007 01:19:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8PPo-0005PX-Tk for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2007 19:19:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8PPg-0005K6-2p for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:18:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8PPe-0005HJ-3Q for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:18:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8PPd-0005HC-VG for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:18:49 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J8PPd-0005Pf-KX for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:18:49 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:60097 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J8PPX-0000PC-6J; Sat, 29 Dec 2007 01:18:44 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <18293.35504.41211.784522@kahikatea.snap.net.nz> X-Antivirus: avast! (VPS 071228-0, 2007-12-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J8PPX-0000PC-6J. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1J8PPX-0000PC-6J c218e2f74a8de8c5ebbf50b4b108f46b X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:85578 Archived-At: Nick Roberts wrote: > > Eh, yes but (sequencep '(prop . val)) also returns t at least in my > > version of Emacs. But maybe this has been changed? > > I don't know what point you are making but all lists are sequences, so > if listp returns t so must sequencep. You cited the following from the manual: > -- Function: length sequence > This function returns the number of elements in SEQUENCE. If > SEQUENCE is a dotted list, a `wrong-type-argument' error is > signaled. However (sequencp '(prop . val)) returns t. What I wanted to know was the recommended way to check if something is a cons cell, but not a sequence, ie something like '(prop . val). Thanks for the pointer to the manual.