]> git.eshelyaron.com Git - emacs.git/commitdiff
Add defvaralias.
authorGerd Moellmann <gerd@gnu.org>
Thu, 4 Oct 2001 09:07:45 +0000 (09:07 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 4 Oct 2001 09:07:45 +0000 (09:07 +0000)
etc/NEWS

index d190795023ed53e28d6f74c8b3f98157bf2592dc..acfa045887f7e6e9b072c80080f2673c573baef4 100644 (file)
--- 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
 
+\f
+* Changes in Emacs 21.2
+
+\f
+* 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.
+
 \f
 * Installation Changes in Emacs 21.1