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: Stefan Monnier
Subject: Re: define-obsolete-variable-alias problem
Date: Thu, 10 Apr 2008 21:36:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> 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?

Yes.

> Perhaps we could test there if new-alias is bound and if so assign the
> value to base-variable.

Indeed except if base-variable already exist, we can't do that.


        Stefan




reply via email to

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