unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-devel@gnu.org
Subject: Re: How does one undo (even temporarily) an defvaralias, giving two distinct variables?
Date: Thu, 14 Mar 2013 14:31:01 +0000	[thread overview]
Message-ID: <20130314143101.GB4296@acm.acm> (raw)
In-Reply-To: <87txogo2o0.fsf@Rainer.invalid>

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	other threads:[~2013-03-14 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12 15:55 How does one undo (even temporarily) an defvaralias, giving two distinct variables? Alan Mackenzie
2013-03-12 19:09 ` Achim Gratz
2013-03-14 14:31   ` Alan Mackenzie [this message]
2013-03-14 15:10     ` Thierry Volpiatto
2013-03-14 15:54       ` Andreas Schwab
2013-03-14 16:36     ` Stefan Monnier
2013-03-14 16:52       ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130314143101.GB4296@acm.acm \
    --to=acm@muc.de \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).