summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-10-23 20:44:26 +0300
committerEli Zaretskii <eliz@gnu.org>2021-10-23 20:44:26 +0300
commit39413a45bf497a5225ef7babf5001d0b0ce682e3 (patch)
treebbdf0a96cad499f1b3de78092991b64d57f969d6 /doc
parent43914ab01fc83466c701de7b350dd957a21c1c6c (diff)
downloademacs-39413a45bf497a5225ef7babf5001d0b0ce682e3.tar.gz
; * doc/lispref/functions.texi (Calling Functions): Fix last change.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/functions.texi13
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index f95c6d3656b..91118b7ae05 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -827,12 +827,19 @@ This function returns a new function which, when called, will call
additional arguments specified at the time of the call. If @var{func}
accepts @var{n} arguments, then a call to @code{apply-partially} with
@w{@code{@var{m} <= @var{n}}} arguments will produce a new function of
-@w{@code{@var{n} - @var{m}}} arguments.
+@w{@code{@var{n} - @var{m}}} arguments@footnote{
+If the number of arguments that @var{func} can accept is unlimited,
+then the new function will also accept an unlimited number of
+arguments, so in that case @code{apply-partially} doesn't reduce the
+number of arguments that the new function could accept.
+}.
Here's how we could define the built-in function @code{1+}, if it
didn't exist, using @code{apply-partially} and @code{+}, another
-built-in function:@footnote{Note that unlike the built-in function
-this version accepts any number of arguments.}
+built-in function@footnote{
+Note that unlike the built-in function, this version accepts any
+number of arguments.
+}:
@example
@group