[Top][All Lists]
[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
- define-obsolete-variable-alias problem, Glenn Morris, 2008/04/09
- Re: define-obsolete-variable-alias problem, Nick Roberts, 2008/04/10
- Re: define-obsolete-variable-alias problem,
Stefan Monnier <=
- Re: define-obsolete-variable-alias problem, Glenn Morris, 2008/04/10
- Re: define-obsolete-variable-alias problem, Glenn Morris, 2008/04/11
- Re: define-obsolete-variable-alias problem, Stefan Monnier, 2008/04/11
- Re: define-obsolete-variable-alias problem, Glenn Morris, 2008/04/11
- Re: define-obsolete-variable-alias problem, Stefan Monnier, 2008/04/11
- Re: define-obsolete-variable-alias problem, Glenn Morris, 2008/04/11