emacs-devel
[Top][All Lists]
Advanced

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

Re: How does one undo (even temporarily) an defvaralias, giving two dist


From: Alan Mackenzie
Subject: Re: How does one undo (even temporarily) an defvaralias, giving two distinct variables?
Date: Thu, 14 Mar 2013 14:31:01 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hi, Achim.

On Tue, Mar 12, 2013 at 08:09:51PM +0100, Achim Gratz wrote:
> Alan Mackenzie writes:
> > How does one undo defvaralias and friends?

> If nothing else works, makunbound should get rid of those symbols so you
> can redefine them.

makunbound sets the target of the alias unbound, but leaves the alias in
place.

I don't think it's possible to unalias a symbol.

The workaround I've come up with is (defvaralias face (gensym)), which
although it leaves `face' as an alias, at least it points to a different
target.

> Regards,
> Achim.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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