diff options
| author | Eli Zaretskii | 2018-06-23 10:38:44 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-06-23 10:38:44 +0300 |
| commit | decdfedf029904c3ecaa082e59e2501572ec77c9 (patch) | |
| tree | 39bcf534f83a3a9b53e06fce1b90af1f1ab6b990 | |
| parent | 5abac8bf81ea4f5d7a9f7b008852c4d80d806c88 (diff) | |
| download | emacs-decdfedf029904c3ecaa082e59e2501572ec77c9.tar.gz emacs-decdfedf029904c3ecaa082e59e2501572ec77c9.zip | |
Clarify wording about functions' argument lists
* doc/lispref/functions.texi (Argument List): Clarify the
wording. (Bug#31872)
| -rw-r--r-- | doc/lispref/functions.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 86181f1b491..93059e8e3a6 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -412,10 +412,14 @@ variables that tell you whether an argument was explicitly passed. | |||
| 412 | binds @code{a} and @code{b} to the first two actual arguments, which are | 412 | binds @code{a} and @code{b} to the first two actual arguments, which are |
| 413 | required. If one or two more arguments are provided, @code{c} and | 413 | required. If one or two more arguments are provided, @code{c} and |
| 414 | @code{d} are bound to them respectively; any arguments after the first | 414 | @code{d} are bound to them respectively; any arguments after the first |
| 415 | four are collected into a list and @code{e} is bound to that list. If | 415 | four are collected into a list and @code{e} is bound to that list. |
| 416 | there are only two arguments, @code{c} is @code{nil}; if two or three | 416 | Thus, if there are only two arguments, @code{c}, @code{d} and @code{e} |
| 417 | arguments, @code{d} is @code{nil}; if four arguments or fewer, @code{e} | 417 | are @code{nil}; if two or three arguments, @code{d} and @code{e} are |
| 418 | is @code{nil}. | 418 | @code{nil}; if four arguments or fewer, @code{e} is @code{nil}. Note |
| 419 | that exactly five arguments with an explicit @code{nil} argument | ||
| 420 | provided for @code{e} will cause that @code{nil} argument to be passed | ||
| 421 | as a list with one element, @code{(nil)}, as with any other single | ||
| 422 | value for @code{e}. | ||
| 419 | 423 | ||
| 420 | There is no way to have required arguments following optional | 424 | There is no way to have required arguments following optional |
| 421 | ones---it would not make sense. To see why this must be so, suppose | 425 | ones---it would not make sense. To see why this must be so, suppose |