1719 |
the old name is obsolete and therefore that it may be removed at some |
the old name is obsolete and therefore that it may be removed at some |
1720 |
stage in the future. |
stage in the future. |
1721 |
|
|
1722 |
@defmac make-obsolete-variable variable new &optional when |
@defun make-obsolete-variable variable new &optional when |
1723 |
This macro makes the byte-compiler warn that the variable |
This function makes the byte-compiler warn that the variable |
1724 |
@var{variable} is obsolete. If @var{new} is a symbol, it is the |
@var{variable} is obsolete. If @var{new} is a symbol, it is the |
1725 |
variable's new name; then the warning message says to use @var{new} |
variable's new name; then the warning message says to use @var{new} |
1726 |
instead of @var{variable}. If @var{new} is a string, this is the |
instead of @var{variable}. If @var{new} is a string, this is the |
1729 |
If provided, @var{when} should be a string indicating when the |
If provided, @var{when} should be a string indicating when the |
1730 |
variable was first made obsolete---for example, a date or a release |
variable was first made obsolete---for example, a date or a release |
1731 |
number. |
number. |
1732 |
@end defmac |
@end defun |
1733 |
|
|
1734 |
You can make two variables synonyms and declare one obsolete at the |
You can make two variables synonyms and declare one obsolete at the |
1735 |
same time using the macro @code{define-obsolete-variable-alias}. |
same time using the macro @code{define-obsolete-variable-alias}. |