emacs-devel
[Top][All Lists]
Advanced

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

Re: define-obsolete-variable-alias problem


From: Nick Roberts
Subject: Re: define-obsolete-variable-alias problem
Date: Thu, 10 Apr 2008 16:54:58 +1200

 > Given this sequence:
 > 
 > (progn
 >   (setq foo 1)
 >   (define-obsolete-variable-alias 'foo 'bar)
 >   (defvar bar 2))
 > 
 > I'd have expected the end result to be bar = foo = 1.
 > However, the actual result is bar = foo = 2.

Isn't this really a problem with defvaralias?  Perhaps we could test there if
new-alias is bound and if so assign the value to base-variable.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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