diff options
| author | John Wiegley | 2022-10-27 13:21:13 -0400 |
|---|---|---|
| committer | GitHub | 2022-10-27 13:21:13 -0400 |
| commit | 407b1bf4f01e562ff1000286a77bb10cf2d0069d (patch) | |
| tree | e8a4ef16b6615c0909385a5d32a60a07bc74a448 | |
| parent | 0be7f5dd53994f971aa282ffa35d52bdb9b22a45 (diff) | |
| parent | 6b344a919754d53070280e691924011ad9086c76 (diff) | |
| download | emacs-407b1bf4f01e562ff1000286a77bb10cf2d0069d.tar.gz emacs-407b1bf4f01e562ff1000286a77bb10cf2d0069d.zip | |
Merge pull request from andreyorst/face-spec-set
GitHub-reference: https://github.com/jwiegley/use-package/issues/1004
| -rw-r--r-- | lisp/use-package/use-package-core.el | 2 | ||||
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 6832c447c7d..f27d158fc05 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -1518,7 +1518,7 @@ no keyword implies `:all'." | |||
| 1518 | (defun use-package-handler/:custom-face (name _keyword args rest state) | 1518 | (defun use-package-handler/:custom-face (name _keyword args rest state) |
| 1519 | "Generate use-package custom-face keyword code." | 1519 | "Generate use-package custom-face keyword code." |
| 1520 | (use-package-concat | 1520 | (use-package-concat |
| 1521 | (mapcar #'(lambda (def) `(custom-set-faces (backquote ,def))) args) | 1521 | (mapcar #'(lambda (def) `(apply #'face-spec-set (backquote ,def))) args) |
| 1522 | (use-package-process-keywords name rest state))) | 1522 | (use-package-process-keywords name rest state))) |
| 1523 | 1523 | ||
| 1524 | ;;;; :init | 1524 | ;;;; :init |
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 1ccd3ad0786..7d98ca99e4a 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el | |||
| @@ -1156,7 +1156,7 @@ | |||
| 1156 | (match-expansion | 1156 | (match-expansion |
| 1157 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) | 1157 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) |
| 1158 | `(progn | 1158 | `(progn |
| 1159 | (custom-set-faces (backquote (foo ((t (:background "#e4edfc")))))) | 1159 | (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc")))))) |
| 1160 | (require 'foo nil nil)))) | 1160 | (require 'foo nil nil)))) |
| 1161 | 1161 | ||
| 1162 | (ert-deftest use-package-test/:custom-face-2 () | 1162 | (ert-deftest use-package-test/:custom-face-2 () |
| @@ -1166,11 +1166,11 @@ | |||
| 1166 | (example-1-face ((t (:foreground "LightPink")))) | 1166 | (example-1-face ((t (:foreground "LightPink")))) |
| 1167 | (example-2-face ((t (:foreground "LightGreen"))))) | 1167 | (example-2-face ((t (:foreground "LightGreen"))))) |
| 1168 | `(progn | 1168 | `(progn |
| 1169 | (custom-set-faces | 1169 | (apply #'face-spec-set |
| 1170 | (backquote (example-1-face ((t (:foreground "LightPink")))))) | 1170 | (backquote (example-1-face ((t (:foreground "LightPink")))))) |
| 1171 | (custom-set-faces | 1171 | (apply #'face-spec-set |
| 1172 | (backquote (example-2-face ((t (:foreground "LightGreen")))))) | 1172 | (backquote (example-2-face ((t (:foreground "LightGreen")))))) |
| 1173 | (require 'example nil nil)))) | 1173 | (require 'example nil nil)))) |
| 1174 | 1174 | ||
| 1175 | (ert-deftest use-package-test/:init-1 () | 1175 | (ert-deftest use-package-test/:init-1 () |
| 1176 | (match-expansion | 1176 | (match-expansion |