]> git.eshelyaron.com Git - emacs.git/commitdiff
Add expand-maximally macro to up-tests.el
authorJohn Wiegley <johnw@newartisans.com>
Mon, 4 Dec 2017 18:30:49 +0000 (10:30 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Mon, 4 Dec 2017 18:30:49 +0000 (10:30 -0800)
up-tests.el

index 063db98bbea6127aee01996336f27db9b3a10d90..2635c7df757645f1a899c90d3503e90581aae20b 100644 (file)
          (use-package-expand-minimally t))
      (macroexpand-1 ',form)))
 
+(defmacro expand-maximally (form)
+  `(let ((use-package-verbose 'debug)
+         (use-package-expand-minimally nil))
+     (macroexpand-1 ',form)))
+
 (defmacro match-expansion (form &rest value)
   `(should (pcase (expand-minimally ,form)
              ,@(mapcar #'(lambda (x) (list x t)) value))))