525 |
@var{name}. It returns the value @var{name}, but usually we ignore this |
@var{name}. It returns the value @var{name}, but usually we ignore this |
526 |
value. |
value. |
527 |
|
|
528 |
As described previously (@pxref{Lambda Expressions}), |
As described previously, @var{argument-list} is a list of argument |
529 |
@var{argument-list} is a list of argument names and may include the |
names and may include the keywords @code{&optional} and @code{&rest} |
530 |
keywords @code{&optional} and @code{&rest}. Also, the first two of the |
(@pxref{Lambda Expressions}). Also, the first two of the |
531 |
@var{body-forms} may be a documentation string and an interactive |
@var{body-forms} may be a documentation string and an interactive |
532 |
declaration. |
declaration. |
533 |
|
|
1174 |
same time using the macro @code{define-obsolete-function-alias}. |
same time using the macro @code{define-obsolete-function-alias}. |
1175 |
|
|
1176 |
@defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring |
@defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring |
1177 |
This macro marks the function @var{obsolete-name} obsolete and also defines |
This macro marks the function @var{obsolete-name} obsolete and also |
1178 |
it as an alias for the function @var{current-name}. A typical call has the |
defines it as an alias for the function @var{current-name}. It is |
1179 |
form: |
equivalent to the following: |
1180 |
|
|
1181 |
@example |
@example |
1182 |
(define-obsolete-function-alias 'old-fun 'new-fun "22.1" "Doc.") |
(defalias @var{obsolete-name} @var{current-name} @var{docstring}) |
1183 |
@end example |
(make-obsolete @var{obsolete-name} @var{current-name} @var{when}) |
|
|
|
|
@noindent |
|
|
which is equivalent to the following two lines of code: |
|
|
|
|
|
@example |
|
|
(defalias 'old-fun 'new-fun "Doc.") |
|
|
(make-obsolete 'old-fun 'new-fun "22.1") |
|
1184 |
@end example |
@end example |
1185 |
@end defmac |
@end defmac |
1186 |
|
|