From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: Re: Creating a list Date: Thu, 19 Nov 2009 14:13:59 +0100 Organization: Decebal Computing Message-ID: <873a4afyi0.fsf@Traian.DecebalComp> References: <87k4xnge1t.fsf@Traian.DecebalComp> <87y6m2kj3m.fsf@lola.goethe.zz> <874ooqhjaw.fsf@Traian.DecebalComp> <874ooqkah6.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258638529 26414 80.91.229.12 (19 Nov 2009 13:48:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 13:48:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 14:48:42 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 1NB7NC-0007sv-No for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 14:48:34 +0100 Original-Received: from localhost ([127.0.0.1]:56083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB7NC-0000Ss-C7 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 08:48:34 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help X-Homepage: http://www.decebal.nl/ User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:3HY9kJKgsazwYjjJwTg/DgDte+E= Original-Lines: 28 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1258636441 news.xs4all.nl 22943 decebal/[::ffff:84.53.123.169]:11112 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: news.stanford.edu gnu.emacs.help:174845 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:69919 Archived-At: David Kastrup writes: >>>> At the moment I create a list with: >>>> (setq ret-val (cons total-amount (cons current-amount ()))) >>>> I thought about doing it with: >>>> (setq ret-val (cons total-amount '(current-amount))) >>>> >>>> But then the second value is the string current-amount >>> >>> Wrong. The _symbol_ current-amount. >> >> When evaluating I got: >> (1570378.2570192777 current-amount) >> That is why I thought I got the string. > > A string would have quote marks around it. Off course. But I have a few questions on my mind. - Why is the first shown as value and the second as _symbol_? - current-amount is a local variable. How is it possible that the symbol is still defined? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof