Mercurial > emacs
changeset 62020:846493e4a4fa
(Variable Aliases): `make-obsolete-variable' is a function and not a macro.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Mon, 02 May 2005 02:47:30 +0000 |
parents | 6c922177fe35 |
children | 512d79799fbd |
files | lispref/variables.texi |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/variables.texi Mon May 02 02:46:13 2005 +0000 +++ b/lispref/variables.texi Mon May 02 02:47:30 2005 +0000 @@ -1719,8 +1719,8 @@ the old name is obsolete and therefore that it may be removed at some stage in the future. -@defmac make-obsolete-variable variable new &optional when -This macro makes the byte-compiler warn that the variable +@defun make-obsolete-variable variable new &optional when +This function makes the byte-compiler warn that the variable @var{variable} is obsolete. If @var{new} is a symbol, it is the variable's new name; then the warning message says to use @var{new} instead of @var{variable}. If @var{new} is a string, this is the @@ -1729,7 +1729,7 @@ If provided, @var{when} should be a string indicating when the variable was first made obsolete---for example, a date or a release number. -@end defmac +@end defun You can make two variables synonyms and declare one obsolete at the same time using the macro @code{define-obsolete-variable-alias}.