aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-10-23 18:42:14 +0200
committerStefan Kangas2021-10-23 18:47:00 +0200
commitef37a86cacab221aa26fc8c2f746626e6e81ebc6 (patch)
tree9da4f3823057dc774a35e4293d77185e60856c18
parent1e8be48738e1324edb9891ff6f7077bd1306cdd7 (diff)
downloademacs-ef37a86cacab221aa26fc8c2f746626e6e81ebc6.tar.gz
emacs-ef37a86cacab221aa26fc8c2f746626e6e81ebc6.zip
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)
-rw-r--r--doc/lispref/functions.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index c856557c3cb..f95c6d3656b 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
826@var{func} with the list of arguments composed from @var{args} and 826@var{func} with the list of arguments composed from @var{args} and
827additional arguments specified at the time of the call. If @var{func} 827additional arguments specified at the time of the call. If @var{func}
828accepts @var{n} arguments, then a call to @code{apply-partially} with 828accepts @var{n} arguments, then a call to @code{apply-partially} with
829@w{@code{@var{m} < @var{n}}} arguments will produce a new function of 829@w{@code{@var{m} <= @var{n}}} arguments will produce a new function of
830@w{@code{@var{n} - @var{m}}} arguments. 830@w{@code{@var{n} - @var{m}}} arguments.
831 831
832Here's how we could define the built-in function @code{1+}, if it 832Here's how we could define the built-in function @code{1+}, if it
833didn't exist, using @code{apply-partially} and @code{+}, another 833didn't exist, using @code{apply-partially} and @code{+}, another
834built-in function: 834built-in function:@footnote{Note that unlike the built-in function
835this version accepts any number of arguments.}
835 836
836@example 837@example
837@group 838@group