aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2005-05-05 23:19:02 +0000
committerLuc Teirlinck2005-05-05 23:19:02 +0000
commit6c9fb58872487b26311784fc44c36bfd01198b63 (patch)
tree6f9f76a8c6833599904b5993135ebc4903a99b02
parent643b4cf5252dea4ae2ae6b4051f5b83fb6f209f9 (diff)
downloademacs-6c9fb58872487b26311784fc44c36bfd01198b63.tar.gz
emacs-6c9fb58872487b26311784fc44c36bfd01198b63.zip
(Variable Aliases): Change description of `define-obsolete-variable-alias'.
-rw-r--r--lispref/variables.texi21
1 files changed, 13 insertions, 8 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index 8b34f4bb9aa..5ece7e98906 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -1736,14 +1736,19 @@ same time using the macro @code{define-obsolete-variable-alias}.
1736 1736
1737@defmac define-obsolete-variable-alias variable new &optional when docstring 1737@defmac define-obsolete-variable-alias variable new &optional when docstring
1738This macro marks the variable @var{variable} as obsolete and also 1738This macro marks the variable @var{variable} as obsolete and also
1739makes it an alias for the variable @var{new}. 1739makes it an alias for the variable @var{new}. A typical call has the form:
1740 1740
1741If provided, @var{when} should be a string indicating when 1741@example
1742@var{variable} was first made obsolete. The optional argument 1742(define-obsolete-variable-alias 'old-var 'new-var "22.1" "Doc.")
1743@var{docstring} specifies the documentation string for @var{variable}. 1743@end example
1744If @var{docstring} is omitted or nil, @var{variable} uses the 1744
1745documentation string of @var{new} unless it already has one of its 1745@noindent
1746own. 1746which is equivalent to the following two lines of code:
1747
1748@example
1749(defvaralias 'oldvar 'newvar "Doc.")
1750(make-obsolete-variable 'old-var 'new-var "22.1")
1751@end example
1747@end defmac 1752@end defmac
1748 1753
1749@defun indirect-variable variable 1754@defun indirect-variable variable