[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 ef37a86: Improve documentation of apply-partially
From: |
Stefan Kangas |
Subject: |
emacs-28 ef37a86: Improve documentation of apply-partially |
Date: |
Sat, 23 Oct 2021 12:51:24 -0400 (EDT) |
branch: emacs-28
commit ef37a86cacab221aa26fc8c2f746626e6e81ebc6
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Improve documentation of apply-partially
* doc/lispref/functions.texi (Calling Functions): Improve
documentation of 'apply-partially' to be slightly more clear with
regards to function arity. (Bug#17623)
---
doc/lispref/functions.texi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index c856557..f95c6d3 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -826,12 +826,13 @@ This function returns a new function which, when called,
will call
@var{func} with the list of arguments composed from @var{args} and
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{m} <= @var{n}}} arguments will produce a new function of
@w{@code{@var{n} - @var{m}}} arguments.
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:
+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 ef37a86: Improve documentation of apply-partially,
Stefan Kangas <=