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

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

how to get default value of variable?


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

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

but I like a more "clean" or efficient way to do it. Any hints?

Miguel.

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

reply via email to

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