From 1f5b4ed62837817037ddc8e1f2d17782c6efc8e5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 31 Mar 2017 10:05:12 -0400 Subject: [PATCH] * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test. --- test/lisp/emacs-lisp/cl-lib-tests.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el index 5edc3e72bf2..b5946208f10 100644 --- a/test/lisp/emacs-lisp/cl-lib-tests.el +++ b/test/lisp/emacs-lisp/cl-lib-tests.el @@ -493,4 +493,13 @@ (should (cl-typep '* 'cl-lib-test-type)) (should-not (cl-typep 1 'cl-lib-test-type))) +(ert-deftest cl-lib-symbol-macrolet () + (should (equal (cl-flet ((f (x) (+ x 5))) + (let ((x 5)) + (f (+ x 6)))) + (cl-symbol-macrolet ((f (+ x 6))) + (cl-flet ((f (x) (+ x 5))) + (let ((x 5)) + (f f))))))) + ;;; cl-lib.el ends here -- 2.39.2