diff options
| author | John Wiegley | 2019-05-29 13:40:03 -0700 |
|---|---|---|
| committer | GitHub | 2019-05-29 13:40:03 -0700 |
| commit | 97f0287e1968d3ccd802fe52a4dbca707babd7fa (patch) | |
| tree | 51da22a54f131769c4c6b9c86e61893d62ce8aa2 | |
| parent | 3e36cbfb6dcd9e9acccc64947321c3cc82f17731 (diff) | |
| parent | c297dfdd20be463106376ff3da8677138d099718 (diff) | |
| download | emacs-97f0287e1968d3ccd802fe52a4dbca707babd7fa.tar.gz emacs-97f0287e1968d3ccd802fe52a4dbca707babd7fa.zip | |
Make custom-face evaluate elisp. ()
Make custom-face evaluate elisp.
GitHub-reference: https://github.com/jwiegley/use-package/issues/773
| -rw-r--r-- | lisp/use-package/use-package-core.el | 2 | ||||
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index fec50fd4bb8..7b4d26ba2a3 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -1419,7 +1419,7 @@ no keyword implies `:all'." | |||
| 1419 | (defun use-package-handler/:custom-face (name _keyword args rest state) | 1419 | (defun use-package-handler/:custom-face (name _keyword args rest state) |
| 1420 | "Generate use-package custom-face keyword code." | 1420 | "Generate use-package custom-face keyword code." |
| 1421 | (use-package-concat | 1421 | (use-package-concat |
| 1422 | (mapcar #'(lambda (def) `(custom-set-faces (quote ,def))) args) | 1422 | (mapcar #'(lambda (def) `(custom-set-faces (backquote ,def))) args) |
| 1423 | (use-package-process-keywords name rest state))) | 1423 | (use-package-process-keywords name rest state))) |
| 1424 | 1424 | ||
| 1425 | ;;;; :init | 1425 | ;;;; :init |
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index c4030b04608..3e3e5a72a13 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el | |||
| @@ -1125,7 +1125,7 @@ | |||
| 1125 | (match-expansion | 1125 | (match-expansion |
| 1126 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) | 1126 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) |
| 1127 | `(progn | 1127 | `(progn |
| 1128 | (custom-set-faces '(foo ((t (:background "#e4edfc"))))) | 1128 | (custom-set-faces (backquote (foo ((t (:background "#e4edfc")))))) |
| 1129 | (require 'foo nil nil)))) | 1129 | (require 'foo nil nil)))) |
| 1130 | 1130 | ||
| 1131 | (ert-deftest use-package-test/:init-1 () | 1131 | (ert-deftest use-package-test/:init-1 () |