Mercurial > emacs
comparison lispref/variables.texi @ 39628:7f0c5b8c1f41
(Variable Aliases): It's `@defmac', not `@defmacro'.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sat, 06 Oct 2001 10:43:08 +0000 |
parents | 9b87a63bcb36 |
children | 867ed25daefa |
comparison
equal
deleted
inserted
replaced
39627:218f185269b8 | 39628:7f0c5b8c1f41 |
---|---|
1664 variable---either because you realize its old name was not well | 1664 variable---either because you realize its old name was not well |
1665 chosen, or because its meaning has partly changed---it can be useful | 1665 chosen, or because its meaning has partly changed---it can be useful |
1666 to keep the old name as an @emph{alias} of the new one for | 1666 to keep the old name as an @emph{alias} of the new one for |
1667 compatibility. You can do this with @code{defvaralias}. | 1667 compatibility. You can do this with @code{defvaralias}. |
1668 | 1668 |
1669 @defmacro defvaralias alias-var base-var | 1669 @defmac defvaralias alias-var base-var |
1670 This function defines the symbol @var{alias-var} as a variable alias | 1670 This function defines the symbol @var{alias-var} as a variable alias |
1671 for symbol @var{base-var}. This means that retrieving the value of | 1671 for symbol @var{base-var}. This means that retrieving the value of |
1672 @var{alias-var} returns the value of @var{base-var}, and changing the | 1672 @var{alias-var} returns the value of @var{base-var}, and changing the |
1673 value of @var{alias-var} changes the value of @var{base-var}. | 1673 value of @var{alias-var} changes the value of @var{base-var}. |
1674 @end defmacro | 1674 @end defmac |
1675 | 1675 |
1676 @defun indirect-variable variable | 1676 @defun indirect-variable variable |
1677 This function returns the variable at the end of the chain of aliases | 1677 This function returns the variable at the end of the chain of aliases |
1678 of @var{variable}. If @var{variable} is not a symbol, or if @var{variable} is | 1678 of @var{variable}. If @var{variable} is not a symbol, or if @var{variable} is |
1679 not defined as an alias, the function returns @var{variable}. | 1679 not defined as an alias, the function returns @var{variable}. |