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 00:05:04 +0100 [thread overview]
Message-ID: <47758120.5000507@gmail.com> (raw)
In-Reply-To: <18293.28417.122146.27016@kahikatea.snap.net.nz>
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?
next prev parent reply other threads:[~2007-12-28 23:05 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) [this message]
2007-12-28 23:45 ` Nick Roberts
2007-12-29 0:18 ` Lennart Borgman (gmail)
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47758120.5000507@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.