From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: florian Newsgroups: gmane.emacs.help Subject: Weird error message "wrong-type-argument symbolp (quote foo)" Date: Wed, 10 Jun 2009 04:45:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244637650 29367 80.91.229.12 (10 Jun 2009 12:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 12:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 10 14:40:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MEN6m-0000Tg-Er for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 14:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:44335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEN6l-0004lM-So for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 08:40:47 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n19g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 92.73.165.181 Original-X-Trace: posting.google.com 1244634304 26558 127.0.0.1 (10 Jun 2009 11:45:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 10 Jun 2009 11:45:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n19g2000vba.googlegroups.com; posting-host=92.73.165.181; posting-account=D6LMWQoAAAA9mPFBi-XXlCxVbyI2qOo- User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.63 (X11; Linux i686; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169884 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65115 Archived-At: Dear wizards, I would not have thought that such an error message was possible, since (quote foo) should be the same as 'foo, hence, a symbol. I have managed to produce it like this: (let ((foo 1) (bar 2) (fubar 3)) (dolist (var '('foo 'bar 'fubar)) (message "%S's value is %d" var (symbol-value var)))) The following form, which should produce the same error, however, does not complain (just as I expected): (let ((var (quote foo))) (symbol-value var)) As expected, it also makes no difference if I write it as (let ((var 'foo)) (symbol-value var)) Also, symbolp and symbol-value do not complain if they get sth like "(quote foo)" as argument. Can anybody point me to what on earth is going on in the first form? Thanks so much! Florian