From e8cf9ab5704c801a5aa9436703c85200192ce787 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 28 May 2001 12:24:49 +0000 Subject: [PATCH] *** empty log message *** --- lispref/variables.texi | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lispref/variables.texi b/lispref/variables.texi index 4b08c8955e6..6cea346a00c 100644 --- a/lispref/variables.texi +++ b/lispref/variables.texi @@ -1657,13 +1657,13 @@ local bindings, we will provide it in a subsequent Emacs version. @node Variable Aliases @section Variable Aliases - When maintaining Lisp programs, it is sometimes useful to make two -variables synonyms for each other, so that both variables invariably -refer to the same value. When a program variable slightly changes -meaning, or when a variable name was chosen badly to begin with, it is -desirable to rename that variable. For compatibility with older -versions of the program it is also desirable to not break code that -uses the original variable name. This can be done with + During the maintenance of Lisp programs, it is sometimes useful to +make two variables synonyms for each other, so that both variables +invariably refer to the same value. When a program variable slightly +changes meaning, or when a variable name is chosen badly to begin +with, it is desirable to rename that variable. For compatibility with +older versions of the program it is also desirable to not break code +using the original variable name. This can be done with @code{defvaralias}. @defun defvaralias old-name new-name @@ -1676,11 +1676,13 @@ value of @var{old-name} changes the value of @var{new-name}. @defun indirect-variable name This function returns the variable at the end of the variable chain of @var{name}. If @var{name} is not a symbol or if @var{name} -is not a variable alias, @var{name} is returned unchanged. +is not a variable alias, this function returns @var{name} unchanged. @end defun @example (defvaralias 'foo 'bar) +(indirect-variable 'foo) + @result{} bar (setq bar 2) bar @result{} 2 -- 2.39.5