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 00:05:04 +0100 Message-ID: <47758120.5000507@gmail.com> References: <477568AC.7090304@gmail.com> <18293.28417.122146.27016@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 1198883153 6057 80.91.229.12 (28 Dec 2007 23:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2007 23:05:53 +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 00:06:05 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 1J8OGu-00065y-Ma for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2007 00:05:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8OGZ-0008Le-G7 for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2007 18:05:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8OGV-0008LZ-3g for emacs-devel@gnu.org; Fri, 28 Dec 2007 18:05:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8OGT-0008LN-Lw for emacs-devel@gnu.org; Fri, 28 Dec 2007 18:05:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8OGT-0008LK-Hr for emacs-devel@gnu.org; Fri, 28 Dec 2007 18:05:17 -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 1J8OGT-0003qG-3y for emacs-devel@gnu.org; Fri, 28 Dec 2007 18:05:17 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59869 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J8OGQ-0000xA-5A; Sat, 29 Dec 2007 00:05:15 +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.28417.122146.27016@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 1J8OGQ-0000xA-5A. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1J8OGQ-0000xA-5A 915799f5a9fb85654b8fa228600fd179 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:85572 Archived-At: Nick Roberts wrote: > > The first of these complaints that it wants a list, the second says is > > is a list: > > No it doesn't. > > > ;; (length '(prop . val)) > > Debugger entered--Lisp error: (wrong-type-argument listp val) > length((prop . val)) > > So it's saying that val should be a list: > > (length '(prop . (val))) > 2 > > '(prop . (val)) > (prop val) > > > ;; (listp '(prop . val)) > > > -- 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. > > I would start with the manual. Eh, yes but (sequencep '(prop . val)) also returns t at least in my version of Emacs. But maybe this has been changed?