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 01:18:34 +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:
>  > 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.




reply via email to

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