summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-04-05 12:31:01 +0300
committerEli Zaretskii <eliz@gnu.org>2023-04-05 12:31:01 +0300
commit6b9f9df9454a59b74790c402916df8628bb9d477 (patch)
tree0e380eab31796ae5e9ec55a4c948111ab801da46 /lisp/subr.el
parent81d1f46d0fe0e4d8656e4994fd77b60b197f2bcf (diff)
downloademacs-6b9f9df9454a59b74790c402916df8628bb9d477.tar.gz
; Improve documentation of 'declare-function'
* doc/lispref/functions.texi (Declaring Functions): * lisp/subr.el (declare-function): Document explicitly that ARGLIST argument, if provided, should include the parentheses.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 131ed110149..2e31929e548 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -45,7 +45,8 @@ declaration. A FILE with an \"ext:\" prefix is an external file.
`check-declare' will check such files if they are found, and skip
them without error if they are not.
-Optional ARGLIST specifies FN's arguments, or is t to not specify
+Optional ARGLIST specifies FN's arguments, in the same form as
+in `defun' (including the parentheses); or it is t to not specify
FN's arguments. An omitted ARGLIST defaults to t, not nil: a nil
ARGLIST specifies an empty argument list, and an explicit t
ARGLIST is a placeholder that allows supplying a later arg.