emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To be a list or not


From: Lennart Borgman (gmail)
Subject: Re: To be a list or not
Date: Sat, 29 Dec 2007 00:05:04 +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

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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]