1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 02:20:21 -08:00

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)
This commit is contained in:
Stefan Kangas 2021-10-23 18:42:14 +02:00
parent 1e8be48738
commit ef37a86cac

View file

@ -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 @var{func} with the list of arguments composed from @var{args} and
additional arguments specified at the time of the call. If @var{func} additional arguments specified at the time of the call. If @var{func}
accepts @var{n} arguments, then a call to @code{apply-partially} with 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. @w{@code{@var{n} - @var{m}}} arguments.
Here's how we could define the built-in function @code{1+}, if it Here's how we could define the built-in function @code{1+}, if it
didn't exist, using @code{apply-partially} and @code{+}, another 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 @example
@group @group