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: define-obsolete-variable-alias problem Date: Wed, 09 Apr 2008 15:16:39 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207768617 18838 80.91.229.12 (9 Apr 2008 19:16:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 19:16:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 09 21:17:30 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 1JjfnS-0002F4-0o for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 21:17:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jjfmo-0006eJ-Ac for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 15:16:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jjfmj-0006cq-T4 for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:16:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jjfmi-0006Zf-5w for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:16:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jjfmh-0006ZR-Tr for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:16:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jjfmh-000070-Go for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:16:39 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Jjfmh-00045b-5F; Wed, 09 Apr 2008 15:16:39 -0400 X-Spook: encryption illuminati Majic AGT. AMME Mantis ASIO anarchy X-Ran: /wtC{CNYEbr@,MS2^R{n-z[vqIs$[Lipi|9]|!.YSdkH:VTMk%7J 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:94804 Archived-At: 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. This is a problem for the case where I have: (setq old-variable-name 1) in my ~/.emacs, and a package uses: (define-obsolete-variable-name 'old-variable-name 'new-variable-name) (defcustom new-variable-name 2) because it means that my customization is ignored. The only solution seems to be to ;;;###autoload the define-obsolete-variable-name statement, and AFAICS by extension every such statement in Emacs, where the variable is user option that might be set in ~.emacs. Is this really how it is supposed to work?