aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2018-02-08 21:40:46 -0500
committerStefan Monnier2018-02-08 21:41:21 -0500
commit6b183f85e02ae1b8527c1bbfa8c5e2c914d28f7c (patch)
treef6797583be0ee794ce1841eab485e36625c11fd8 /test
parentd34dbc0b69b288ee5e969208ab05b00a3fcc7638 (diff)
downloademacs-6b183f85e02ae1b8527c1bbfa8c5e2c914d28f7c.tar.gz
emacs-6b183f85e02ae1b8527c1bbfa8c5e2c914d28f7c.zip
* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Handle lambda!
(cl--old-macroexpand): Remove. (cl--sm-macroexpand): Change its calling convention, so it can use advice-add. Extend re-binding treatment of vars so it applies to all var-introducing forms rather than only to 'let'. (cl-symbol-macrolet): Use advice-add rather than fset.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/cl-lib-tests.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el
index 69d0a747105..f100e8c6c5f 100644
--- a/test/lisp/emacs-lisp/cl-lib-tests.el
+++ b/test/lisp/emacs-lisp/cl-lib-tests.el
@@ -518,13 +518,14 @@
518 518
519 519
520(ert-deftest cl-lib-symbol-macrolet-hide () 520(ert-deftest cl-lib-symbol-macrolet-hide ()
521 ;; bug#26325 521 ;; bug#26325, bug#26073
522 (should (equal (let ((y 5)) 522 (should (equal (let ((y 5))
523 (cl-symbol-macrolet ((x y)) 523 (cl-symbol-macrolet ((x y))
524 (list x 524 (list x
525 (let ((x 6)) (list x y)) 525 (let ((x 6)) (list x y))
526 (cl-letf ((x 6)) (list x y))))) 526 (cl-letf ((x 6)) (list x y))
527 '(5 (6 5) (6 6))))) 527 (apply (lambda (x) (+ x 1)) (list 8)))))
528 '(5 (6 5) (6 6) 9))))
528 529
529(defun cl-lib-tests--dummy-function () 530(defun cl-lib-tests--dummy-function ()
530 ;; Dummy function to see if the file is compiled. 531 ;; Dummy function to see if the file is compiled.