aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-04-19 11:29:50 +0300
committerEli Zaretskii2018-04-19 11:29:50 +0300
commitf4c989427b5fa0bb8507d14850fcbc35ff159e95 (patch)
treebb3c5ab3de587da7b508565b465757d9b6601f9e
parentce0e253f482f8e522fbfa939f558ef8e1fa54163 (diff)
downloademacs-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.texi8
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.
498arguments written in a macro definition often do not correspond to the 498arguments written in a macro definition often do not correspond to the
499way users think of the parts of the macro call. 499way users think of the parts of the macro call.
500 500
501 Do not use this feature if you want to deprecate the calling
502convention and favor the one you advertise by the above specification.
503Instead, 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
506compiler emit a warning message when it compiles Lisp programs which
507use 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