From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: How does one undo (even temporarily) an defvaralias, giving two distinct variables? Date: Thu, 14 Mar 2013 14:31:01 +0000 Message-ID: <20130314143101.GB4296@acm.acm> References: <20130312155548.GA4276@acm.acm> <87txogo2o0.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1363271508 1478 80.91.229.3 (14 Mar 2013 14:31:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 14:31:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 14 15:32:09 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UG9CO-0002d7-5H for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2013 15:32:04 +0100 Original-Received: from localhost ([::1]:33304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG9C1-0007GR-AY for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2013 10:31:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG9Bw-0007A8-MS for emacs-devel@gnu.org; Thu, 14 Mar 2013 10:31:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG9Bt-00077h-RT for emacs-devel@gnu.org; Thu, 14 Mar 2013 10:31:36 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:43752 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG9Bt-000771-JD for emacs-devel@gnu.org; Thu, 14 Mar 2013 10:31:33 -0400 Original-Received: (qmail 86796 invoked by uid 3782); 14 Mar 2013 14:31:30 -0000 Original-Received: from acm.muc.de (pD9557A7D.dip.t-dialin.net [217.85.122.125]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 14 Mar 2013 15:31:27 +0100 Original-Received: (qmail 4729 invoked by uid 1000); 14 Mar 2013 14:31:01 -0000 Content-Disposition: inline In-Reply-To: <87txogo2o0.fsf@Rainer.invalid> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157849 Archived-At: 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).