From fe24e744865bd48be83a8218cb70597b890f12e1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 4 Oct 2001 09:07:45 +0000 Subject: [PATCH] Add defvaralias. --- etc/NEWS | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index d190795023e..acfa045887f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -5,6 +5,30 @@ See the end for copying conditions. Please send Emacs bug reports to bug-gnu-emacs@gnu.org. For older news, see the file ONEWS + +* Changes in Emacs 21.2 + + +* Lisp Changes in Emacs 21.2 + +** Variable aliases have been implemented + +- macro: defvaralias ALIAS-VAR BASE-VAR + +This defines the symbol ALIAS-VAR as a variable alias for symbol +BASE-VAR. This means that retrieving the value of ALIAS-VAR returns +the value of BASE-VAR, and changing the value of ALIAS-VAR changes the +value of BASE-VAR. + +- function: indirect-variable VARIABLE + +This function returns the variable at the end of the chain of aliases +of VARIABLE. If VARIABLE is not a symbol, or if VARIABLE is not +defined as an alias, the function returns VARIABLE. + +It might be noteworthy that variables aliases work for all kinds of +variables, including buffer-local and frame-local variables. + * Installation Changes in Emacs 21.1 -- 2.39.5