From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: To be a list or not
Date: Sat, 29 Dec 2007 01:18:34 +0100 [thread overview]
Message-ID: <4775925A.6020300@gmail.com> (raw)
In-Reply-To: <18293.35504.41211.784522@kahikatea.snap.net.nz>
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.
next prev parent reply other threads:[~2007-12-29 0:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 21:20 To be a list or not Lennart Borgman (gmail)
2007-12-28 21:40 ` Eric Hanchrow
2007-12-28 21:47 ` Nick Roberts
2007-12-28 23:05 ` Lennart Borgman (gmail)
2007-12-28 23:45 ` Nick Roberts
2007-12-29 0:18 ` Lennart Borgman (gmail) [this message]
2007-12-29 3:35 ` Bob Rogers
2007-12-29 21:11 ` Stephen J. Turnbull
2007-12-29 22:40 ` Miles Bader
2007-12-29 22:44 ` Tom Tromey
2007-12-29 23:22 ` Andreas Schwab
2007-12-31 16:38 ` Tom Tromey
2007-12-31 17:13 ` Andreas Schwab
2007-12-30 0:54 ` Stephen J. Turnbull
2007-12-30 3:52 ` Bob Rogers
2007-12-30 1:37 ` Richard Stallman
2007-12-29 17:49 ` Richard Stallman
2007-12-29 13:51 ` Richard Stallman
2007-12-29 14:30 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4775925A.6020300@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=nickrob@snap.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).