From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: define-obsolete-variable-alias problem Date: Thu, 10 Apr 2008 23:53:16 -0400 Message-ID: References: <18429.40354.962001.482941@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207886016 9114 80.91.229.12 (11 Apr 2008 03:53:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 03:53:36 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 11 05:54:08 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkAKw-0007Tm-Kn for ged-emacs-devel@m.gmane.org; Fri, 11 Apr 2008 05:54:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAKI-0007ug-VA for ged-emacs-devel@m.gmane.org; Thu, 10 Apr 2008 23:53:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkAKF-0007rW-As for emacs-devel@gnu.org; Thu, 10 Apr 2008 23:53:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkAKD-0007nk-RY for emacs-devel@gnu.org; Thu, 10 Apr 2008 23:53:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAKD-0007nb-OV for emacs-devel@gnu.org; Thu, 10 Apr 2008 23:53:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkAKE-0005M0-18 for emacs-devel@gnu.org; Thu, 10 Apr 2008 23:53:18 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JkAKC-0004pI-Mv; Thu, 10 Apr 2008 23:53:16 -0400 X-Spook: wire transfer Honduras rs9512c Sears Tower beanpole virus X-Ran: Nf#p/3OpO~DzmZ6Xo:6qJ`m@ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94935 Archived-At: Stefan Monnier wrote: >> 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. OK, I think I've installed that. However if it is to work for the case I posted, define-obsolete-variable-alias must be placed _before_ an associated defcustom. A quick glance in some random .el files shows that often it is not. I know I usually write them the other way round. Time to move a bunch of them?