From dea56361535215807677fdb01c80ea4d8bcc38d0 Mon Sep 17 00:00:00 2001 From: ryunix Date: Thu, 20 Apr 2023 19:10:24 +0900 Subject: [PATCH] Fix test and documents for :custom-face --- README.md | 2 +- use-package-core.el | 2 +- use-package-tests.el | 4 ++-- use-package.texi | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f7fa8b0..87405ea 100644 --- a/README.md +++ b/README.md @@ -494,7 +494,7 @@ The `:custom-face` keyword allows customization of package custom faces. (use-package example :custom-face (example-1-face ((t (:foreground "LightPink")))) - (example-2-face ((t (:foreground "LightGreen"))) face-defspec-spec)) + (example-2-face ((t (:foreground "LightGreen"))) face-defface-spec)) (use-package zenburn-theme :preface diff --git a/use-package-core.el b/use-package-core.el index 48c20c7..42ed39a 100644 --- a/use-package-core.el +++ b/use-package-core.el @@ -1674,7 +1674,7 @@ Usage: :custom Call `Custom-set' or `set-default' with each variable definition without modifying the Emacs `custom-file'. (compare with `custom-set-variables'). -:custom-face Call `custom-set-faces' with each face definition. +:custom-face Call `face-spec-set' with each face definition. :ensure Loads the package using package.el if necessary. :pin Pin the package to an archive." (declare (indent defun)) diff --git a/use-package-tests.el b/use-package-tests.el index 26231f7..11a3b0f 100644 --- a/use-package-tests.el +++ b/use-package-tests.el @@ -1171,9 +1171,9 @@ (ert-deftest use-package-test/:custom-face-3 () (match-expansion - (use-package foo :custom-face (foo ((t (:background "#e4edfc"))) face-defspec-spec)) + (use-package foo :custom-face (foo ((t (:background "#e4edfc"))) face-defface-spec)) `(progn - (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))) face-defspec-spec))) + (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))) face-defface-spec))) (require 'foo nil nil)))) (ert-deftest use-package-test/:init-1 () diff --git a/use-package.texi b/use-package.texi index b1d7b10..6221789 100644 --- a/use-package.texi +++ b/use-package.texi @@ -1234,7 +1234,7 @@ faces. (use-package example :custom-face (example-1-face ((t (:foreground "LightPink")))) - (example-2-face ((t (:foreground "LightGreen"))) face-defspec-spec)) + (example-2-face ((t (:foreground "LightGreen"))) face-defface-spec)) (use-package zenburn-theme :preface