diff options
| author | Stefan Kangas | 2021-10-23 18:42:14 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-10-23 18:47:00 +0200 |
| commit | ef37a86cacab221aa26fc8c2f746626e6e81ebc6 (patch) | |
| tree | 9da4f3823057dc774a35e4293d77185e60856c18 | |
| parent | 1e8be48738e1324edb9891ff6f7077bd1306cdd7 (diff) | |
| download | emacs-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.texi | 5 |
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 |
| 827 | additional arguments specified at the time of the call. If @var{func} | 827 | additional arguments specified at the time of the call. If @var{func} |
| 828 | accepts @var{n} arguments, then a call to @code{apply-partially} with | 828 | accepts @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 | ||
| 832 | Here's how we could define the built-in function @code{1+}, if it | 832 | Here's how we could define the built-in function @code{1+}, if it |
| 833 | didn't exist, using @code{apply-partially} and @code{+}, another | 833 | didn't exist, using @code{apply-partially} and @code{+}, another |
| 834 | built-in function: | 834 | built-in function:@footnote{Note that unlike the built-in function |
| 835 | this version accepts any number of arguments.} | ||
| 835 | 836 | ||
| 836 | @example | 837 | @example |
| 837 | @group | 838 | @group |