From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: doc and help for defvaralias Date: Mon, 3 Jul 2006 14:30:32 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151962254 20250 80.91.229.2 (3 Jul 2006 21:30:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2006 21:30:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 03 23:30:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxW0K-0007P3-FH for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 23:30:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxW0J-0006F3-VT for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 17:30:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxW07-0006Eq-I7 for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:30:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxW05-0006EG-Vw for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:30:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxW05-0006E9-Ov for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:30:37 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FxWDc-0005oY-MH for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:44:36 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k63LUaA8016979 for ; Mon, 3 Jul 2006 16:30:36 -0500 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-82-73.vpn.oracle.com [141.144.82.73]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k63LUYHW004609 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 3 Jul 2006 15:30:35 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." 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:56441 Archived-At: Let me be clearer about the connection to variables in this use case: 2. I have used `defvaralias' to provide an alias (!) - no connection with deprecation. I have two libraries, one of which (eyedropper.el) is a rudimentary version the other (palette.el), providing only some of its functionality. The rudimentary library is for Emacs versions before Emacs 22, but that is irrelevant - one might simply be a lightweight, reduced version of the other. Some other libraries use (require) the eyedropper functionality, calling functions and using variables defined in eyedropper.el and named using prefix `eyedrop-'. Library palette.el redefines the eyedropper commands, providing them with additional bells and whistles. Because the other libraries use functions and variables that start with `eyedrop-', library palette.el provides `eyedrop-' aliases to its fancier versions (which are defined with prefix `palette-'). The point here was about variable aliases, but I didn't make that clear in the use-case description. Libraries use the `eyedrop-' variables and in fact get the `palette-' variables. If you use Emacs 22 and you have palette.el loaded, then you can use the other libraries as is and take advantage of the palette.el versions of `eyedrop-' functions and variables, thanks to the aliases.