From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: List-of-lists data structure Date: 13 Apr 2014 07:49:43 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1397375425 12531 80.91.229.3 (13 Apr 2014 07:50:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2014 07:50:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 13 09:50:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WZFBC-0001X9-RQ for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Apr 2014 09:50:18 +0200 Original-Received: from localhost ([::1]:36788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZFBC-00007J-Bf for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Apr 2014 03:50:18 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: individual.net ARfLipb9Dsjq99xXWjlFnAokSETWM0j6CeNR7VJtSbiOxPvOQr Cancel-Lock: sha1:MKZM7jI8qG0hesgjUoe+kn0vkhw= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:204848 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97114 Archived-At: 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)