aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPhilipp Stephani2020-06-10 15:34:41 +0200
committerPhilipp Stephani2020-06-10 15:34:41 +0200
commit73be4d1ed5b190bd93e9bad6aebe43d0dea0d7d3 (patch)
treeb9630e055af5343ae28f7eaa6e0d38a17a1b073f /test
parent9e04d0f289cc74fe2453910287bdab37e4aa1d35 (diff)
downloademacs-73be4d1ed5b190bd93e9bad6aebe43d0dea0d7d3.tar.gz
emacs-73be4d1ed5b190bd93e9bad6aebe43d0dea0d7d3.zip
Allow destructuring in &aux sections when using edebug (Bug#40431)
* lisp/emacs-lisp/cl-macs.el (cl-lambda-list, cl-lambda-list1) (cl-macro-list, cl-macro-list1): Allow arbitrary 'cl-lambda' arguments in the &aux section. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-aux-edebug): New regression test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/cl-macs-tests.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el
index 24bbad0cc6b..29ae95e2771 100644
--- a/test/lisp/emacs-lisp/cl-macs-tests.el
+++ b/test/lisp/emacs-lisp/cl-macs-tests.el
@@ -601,4 +601,13 @@ collection clause."
601 collect y into result1 601 collect y into result1
602 finally return (equal (nreverse result) result1)))) 602 finally return (equal (nreverse result) result1))))
603 603
604(ert-deftest cl-macs-aux-edebug ()
605 "Check that Bug#40431 is fixed."
606 (with-temp-buffer
607 (prin1 '(cl-defun cl-macs-aux-edebug-test-fun (&aux ((a . b) '(1 . 2)))
608 (list a b))
609 (current-buffer))
610 ;; Just make sure the function can be instrumented.
611 (edebug-defun)))
612
604;;; cl-macs-tests.el ends here 613;;; cl-macs-tests.el ends here