]> git.eshelyaron.com Git - emacs.git/commit
Eval backquote earlier and support non-`progn' lists
authorNicolas Richard <theonewiththeevillook@yahoo.fr>
Thu, 6 Mar 2014 09:46:33 +0000 (10:46 +0100)
committerNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 5 May 2014 10:14:53 +0000 (12:14 +0200)
commit4e80d29dafe11999b97de88fd1c3f5870aee6668
tree8d15b51bbcc507859aebc2bc8a8a3506ba57d30d
parentd63972eb29600df4c840ab86f78d2c2659b8ae24
Eval backquote earlier and support non-`progn' lists

* use-package.el (use-package-plist-get): add optional args: `eval-backquote'
  and `no-progn' to control how arguments are retrieved.
  (use-package-plist-get-value): remove this function
  (use-package): replace calls to old function to modified function.

Fixes issue https://github.com/jwiegley/use-package/issues/94.

Rationale :
- use-package-plist-get-value was just another layer for no good reason,
  and IMO its name was totally unclear.
- we now eval-as-backquote earlier, allowing constructs like:
(let ((my-list-of-commands-in-foo '(foo1 foo2)))
  (use-package foo :commands ,@my-list-of-commands-in-foo))
lisp/use-package/use-package.el