diff options
author | Toby Cubitt <toby@dr-qubit.org> | 2021-03-20 10:01:13 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-20 10:01:19 +0100 |
commit | e33c2bfbf3f62449a9b62de423a1bbe3a39a3dca (patch) | |
tree | 9e64c9d7d6005d8fa3530b7f2da02919269290c3 /test/lisp/emacs-lisp | |
parent | f85b66d9b02ed440fc08e5c4dc987bbff9be97d6 (diff) | |
download | emacs-e33c2bfbf3f62449a9b62de423a1bbe3a39a3dca.tar.gz emacs-e33c2bfbf3f62449a9b62de423a1bbe3a39a3dca.tar.bz2 emacs-e33c2bfbf3f62449a9b62de423a1bbe3a39a3dca.zip |
Fix cl-progv binding order
* lisp/emacs-lisp/cl-macs.el (cl-progv): Bind variables in the
correct order (bug#47272).
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/cl-macs-tests.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el index df1d26a074e..dd6487603d3 100644 --- a/test/lisp/emacs-lisp/cl-macs-tests.el +++ b/test/lisp/emacs-lisp/cl-macs-tests.el @@ -648,4 +648,9 @@ collection clause." #'len)) (`(function (lambda (,_ ,_) . ,_)) t)))) +(ert-deftest cl-macs--progv () + (should (= (cl-progv '(test test) '(1 2) test) 2)) + (should (equal (cl-progv '(test1 test2) '(1 2) (list test1 test2)) + '(1 2)))) + ;;; cl-macs-tests.el ends here |