aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Pogonyshev2016-03-26 11:19:43 +0300
committerEli Zaretskii2016-03-26 11:19:43 +0300
commit6f3243db55e61847784178ea812f28ddf003544a (patch)
treee2bbb4e4c3a49ab661524135c6b1a610580431b8 /etc
parent368b9bb45f125061506d43af4bd4791ab2cfd7b9 (diff)
downloademacs-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/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 0bc61308945..ce21532b68d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
186of an arbitrary function.
187This is a generalization of 'subr-arity' for functions that are not
188built-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
186non-nil when the last character scanned might be the first character 193non-nil when the last character scanned might be the first character
187of a two character construct, i.e. a comment delimiter or escaped 194of a two character construct, i.e. a comment delimiter or escaped