diff options
| author | Andrea Corallo | 2020-08-31 22:06:49 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-08-31 22:36:58 +0200 |
| commit | c6f42387e32a4e99cd9ddd203ab51f3c5694054e (patch) | |
| tree | efa4bc89b6a8cbd12cacc997fef5e78a47a10913 /test/src | |
| parent | bce9cad4213f9af8be08311ac2b93add5c93a997 (diff) | |
| download | emacs-c6f42387e32a4e99cd9ddd203ab51f3c5694054e.tar.gz emacs-c6f42387e32a4e99cd9ddd203ab51f3c5694054e.zip | |
Fix describe function arglist for native compiled lisp/d (bug#42572)
* lisp/help.el (help-function-arglist): Handle the case of native
compiled lisp/d.
* src/data.c (syms_of_data): Register new subrs.
(Fsubr_native_dyn_p, Fsubr_native_lambda_list): New primitives.
* test/src/comp-tests.el (comp-tests-dynamic-help-arglist): New test.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 2a078be8cb0..b147bd6789c 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -582,6 +582,13 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | |||
| 582 | (should (equal '(2 . many) | 582 | (should (equal '(2 . many) |
| 583 | (func-arity #'comp-tests-ffuncall-callee-opt-rest-dyn-f)))) | 583 | (func-arity #'comp-tests-ffuncall-callee-opt-rest-dyn-f)))) |
| 584 | 584 | ||
| 585 | (ert-deftest comp-tests-dynamic-help-arglist () | ||
| 586 | "Test `help-function-arglist' works on lisp/d (bug#42572)." | ||
| 587 | (should (equal (help-function-arglist | ||
| 588 | (symbol-function #'comp-tests-ffuncall-callee-opt-rest-dyn-f) | ||
| 589 | t) | ||
| 590 | '(a b &optional c &rest d)))) | ||
| 591 | |||
| 585 | (ert-deftest comp-tests-cl-macro-exp () | 592 | (ert-deftest comp-tests-cl-macro-exp () |
| 586 | "Verify CL macro expansion (bug#42088)." | 593 | "Verify CL macro expansion (bug#42088)." |
| 587 | (should (equal (comp-tests-cl-macro-exp-f) '(a b)))) | 594 | (should (equal (comp-tests-cl-macro-exp-f) '(a b)))) |