[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 39413a4: ; * doc/lispref/functions.texi (Calling Functions): Fi
From: |
Eli Zaretskii |
Subject: |
emacs-28 39413a4: ; * doc/lispref/functions.texi (Calling Functions): Fix last change. |
Date: |
Sat, 23 Oct 2021 13:45:19 -0400 (EDT) |
branch: emacs-28
commit 39413a45bf497a5225ef7babf5001d0b0ce682e3
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * doc/lispref/functions.texi (Calling Functions): Fix last change.
---
doc/lispref/functions.texi | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index f95c6d3..91118b7 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 39413a4: ; * doc/lispref/functions.texi (Calling Functions): Fix last change.,
Eli Zaretskii <=