diff options
| author | Eli Zaretskii | 2018-04-19 11:29:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-04-19 11:29:50 +0300 |
| commit | f4c989427b5fa0bb8507d14850fcbc35ff159e95 (patch) | |
| tree | bb3c5ab3de587da7b508565b465757d9b6601f9e | |
| parent | ce0e253f482f8e522fbfa939f558ef8e1fa54163 (diff) | |
| download | emacs-f4c989427b5fa0bb8507d14850fcbc35ff159e95.tar.gz emacs-f4c989427b5fa0bb8507d14850fcbc35ff159e95.zip | |
Improve documentation of actual arglist
* doc/lispref/functions.texi (Function Documentation): Advise
against using '(fn ARGLIST)' method of advertising a calling
convention when the old calling convention is deprecated.
(Bug#31191)
| -rw-r--r-- | doc/lispref/functions.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 78372a8a10e..86181f1b491 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -498,6 +498,14 @@ derived from the actual arguments of the function. | |||
| 498 | arguments written in a macro definition often do not correspond to the | 498 | arguments written in a macro definition often do not correspond to the |
| 499 | way users think of the parts of the macro call. | 499 | way users think of the parts of the macro call. |
| 500 | 500 | ||
| 501 | Do not use this feature if you want to deprecate the calling | ||
| 502 | convention and favor the one you advertise by the above specification. | ||
| 503 | Instead, use the @code{advertised-calling-convention} declaration | ||
| 504 | (@pxref{Declare Form}) or @code{set-advertised-calling-convention} | ||
| 505 | (@pxref{Obsolete Functions}), because these two will cause the byte | ||
| 506 | compiler emit a warning message when it compiles Lisp programs which | ||
| 507 | use the deprecated calling convention. | ||
| 508 | |||
| 501 | @node Function Names | 509 | @node Function Names |
| 502 | @section Naming a Function | 510 | @section Naming a Function |
| 503 | @cindex function definition | 511 | @cindex function definition |