]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorGerd Moellmann <gerd@gnu.org>
Mon, 28 May 2001 12:24:49 +0000 (12:24 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 28 May 2001 12:24:49 +0000 (12:24 +0000)
lispref/variables.texi

index 4b08c8955e60643238ae53628d96b29fc4706762..6cea346a00cb0dfcdd5444115f3b4ea59428db2e 100644 (file)
@@ -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