From: Joost Kremers <joost.m.kremers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: List-of-lists data structure
Date: 13 Apr 2014 07:49:43 GMT [thread overview]
Message-ID: <slrnlkkgcn.bqd.joost.m.kremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.19516.1397327481.10748.help-gnu-emacs@gnu.org
Jacob Gerlach wrote:
> However, if I try to expand the list:
>
> (setq name-and-keyword-list
> '("pFoo" ("foo" "bar" "baz"))
> '("pBar" ("apples" "pears" "orange")))
>
> Building the list gives:
> Wrong type argument: symbolp, (quote ("pBar" ("apples" "pears"
> "orange")))
The error message (which IMHO is a bit cryptic), says that it is
expecting a symbol but getting a list. The point is, your setq is wrong.
The arguments of setq need to be pairs of [symbol value]. You specify a
symbol and then two lists. What you (apparently) want is a list of
lists:
(setq name-and-keyword-list
'(("pFoo" ("foo" "bar" "baz"))
("pBar" ("apples" "pears" "orange"))))
However, I was wondering the same thing as Stefan: why not use the
=-sign to anchor your font-lock entry? Seems much easier.
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
next parent reply other threads:[~2014-04-13 7:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.19516.1397327481.10748.help-gnu-emacs@gnu.org>
2014-04-13 7:49 ` Joost Kremers [this message]
2014-04-13 18:44 ` List-of-lists data structure Jacob Gerlach
2014-04-13 18:59 ` Joost Kremers
2014-04-12 13:46 Jacob Gerlach
2014-04-12 20:07 ` Stefan Monnier
2014-04-13 8:13 ` Thien-Thi Nguyen
[not found] ` <mailman.19545.1397376560.10748.help-gnu-emacs@gnu.org>
2014-04-13 18:47 ` Jacob Gerlach
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=slrnlkkgcn.bqd.joost.m.kremers@j.kremers4.news.arnhem.chello.nl \
--to=joost.m.kremers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.