summaryrefslogtreecommitdiff
path: root/doc/lispref/functions.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-10-23 18:42:14 +0200
committerStefan Kangas <stefan@marxist.se>2021-10-23 18:47:00 +0200
commitef37a86cacab221aa26fc8c2f746626e6e81ebc6 (patch)
tree9da4f3823057dc774a35e4293d77185e60856c18 /doc/lispref/functions.texi
parent1e8be48738e1324edb9891ff6f7077bd1306cdd7 (diff)
downloademacs-ef37a86cacab221aa26fc8c2f746626e6e81ebc6.tar.gz
emacs-ef37a86cacab221aa26fc8c2f746626e6e81ebc6.tar.bz2
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)
Diffstat (limited to 'doc/lispref/functions.texi')
-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
@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