* etc/NEWS: Document 'help-display-function-type'.
* doc/lispref/functions.texi (Declare Form):
* doc/lispref/objects.texi (Type Specifiers):
* doc/emacs/help.texi (Name Help): Better indexing of function
types. (Bug#65288)
(cherry picked from commit
ee1034422b0c84722a237ab6fdd410ab74674ee6)
@key{RET} on emphasized parts of the text.
@cindex function type specifier
-
+@cindex declared type of a function
+@cindex inferred type of a function
The function type, if known, is expressed with a @dfn{function type
specifier} (@pxref{Type Specifiers,,,elisp, The Emacs Lisp Reference
Manual}), it will be specified if the type was manually declared by a
for the code emitted for the function (@pxref{Native-Compilation
Variables}).
+@cindex function type declaration
@item (ftype @var{type} &optional @var{function})
Declare @var{type} to be the type of this function. This is used for
documentation by @code{describe-function}. Also it can be used by the
The @code{member} type specifier allows to specify a type that includes
only the explicitly listed values.
+@cindex declared type of a function
@item (function (@var{arg-1-type} @dots{} @var{arg-n-type}) @var{return-type})
The @code{function} type specifier is used to describe the argument
types and the return type of a function. Argument types can be interleaved