diff options
| author | Paul Pogonyshev | 2016-03-26 11:19:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-03-26 11:19:43 +0300 |
| commit | 6f3243db55e61847784178ea812f28ddf003544a (patch) | |
| tree | e2bbb4e4c3a49ab661524135c6b1a610580431b8 /etc | |
| parent | 368b9bb45f125061506d43af4bd4791ab2cfd7b9 (diff) | |
| download | emacs-6f3243db55e61847784178ea812f28ddf003544a.tar.gz emacs-6f3243db55e61847784178ea812f28ddf003544a.zip | |
Implement 'func-arity'
* src/eval.c (Ffunc_arity, lambda_arity): New functions.
* src/bytecode.c (get_byte_code_arity): New function.
* src/lisp.h (get_byte_code_arity): Add prototype.
* doc/lispref/functions.texi (What Is a Function): Document
'func-arity'.
* etc/NEWS: Mention 'func-arity'.
* test/src/fns-tests.el (fns-tests-func-arity): New test set.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -182,6 +182,13 @@ a new window when opening man pages when there's already one, use | |||
| 182 | (mode . Man-mode)))) | 182 | (mode . Man-mode)))) |
| 183 | 183 | ||
| 184 | +++ | 184 | +++ |
| 185 | ** New function 'func-arity' returns information about the argument list | ||
| 186 | of an arbitrary function. | ||
| 187 | This is a generalization of 'subr-arity' for functions that are not | ||
| 188 | built-in primitives. We recommend using this new function instead of | ||
| 189 | 'subr-arity'. | ||
| 190 | |||
| 191 | +++ | ||
| 185 | ** 'parse-partial-sexp' state has a new element. Element 10 is | 192 | ** 'parse-partial-sexp' state has a new element. Element 10 is |
| 186 | non-nil when the last character scanned might be the first character | 193 | non-nil when the last character scanned might be the first character |
| 187 | of a two character construct, i.e. a comment delimiter or escaped | 194 | of a two character construct, i.e. a comment delimiter or escaped |