help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get default value of variable?


From: Miguel Frasson
Subject: Re: how to get default value of variable?
Date: 17 Sep 2004 21:24:44 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Miguel Frasson <frasson@acrab.math.leidenuniv.nl> writes:

> Hi
> 
> How to get default value of variable?
> 
> (setq a 1)  ==> 1
> (set (make-local-variable 'a) 2)  ==> 2
> a   ==> 2
> 
> How to get the default value, in a easy way? I could do
> 
> (with-temp-buffer a)   ==> 1

Sorry, the solution was obvious... I don't know how I could not find
before...

(default-value 'a)

Miguel

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]