From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Working with constansts Date: Sun, 10 May 2009 18:20:54 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87d4ahylp3.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241973747 2207 80.91.229.12 (10 May 2009 16:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2009 16:42:27 +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 May 10 18:42:17 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 1M3C6R-0006BQ-9c for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 18:42:15 +0200 Original-Received: from localhost ([127.0.0.1]:54011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3C6L-0003m7-FI for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 12:42:09 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!feeder.motzarella.org!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/1S1ca6o4JwQvk4wudEI33Fitlk4Lx1h11kla5uIP4nUK2vND92k3ea8B+5wyp+WFa9SblT/oAj0Q4nDROdXSMLMMpAOUI5QObmDESe3v08Bcg7EaFTd/bbID3EJ8BMbHsr/2jVBmLdg== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 10 May 2009 16:21:00 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19D0OfHuhF/bscAleYemqVA87crWrDDpsszeA2eL9vG2g== Cancel-Lock: sha1:JI3Y1XOzkOYqNshnBjxdMvhgAMc= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:169056 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:64320 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Decebal writes: > >> I would like to work with constants in my elisp code. I thought that I >> could do this with defconst, but that doen not work. >> After: >> (defconst dummy "testing") >> The variable dummy has the value "testing". >> But after: >> (setq dummy "changed") >> The variable dummy has the value "changed". >> What am I doing wrong. > > You're still thinking that constants don't change or that variables do. > > If you don't want to change the value of a constant, then don't change > it. Why is it called a constant if its not enforced?