summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package-core.el
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2022-10-29 13:24:13 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2022-10-29 13:26:31 +0300
commit76a5ce5d8693cf7e8a70209b4275e0c21708e4a9 (patch)
tree6db70e8aba877265cbdaeeb48454dff3c600465e /lisp/use-package/use-package-core.el
parent407b1bf4f01e562ff1000286a77bb10cf2d0069d (diff)
downloademacs-76a5ce5d8693cf7e8a70209b4275e0c21708e4a9.tar.gz
emacs-76a5ce5d8693cf7e8a70209b4275e0c21708e4a9.tar.bz2
emacs-76a5ce5d8693cf7e8a70209b4275e0c21708e4a9.zip
Allow passing the SPEC-TYPE argument via :custom-face
GitHub-reference: https://github.com/jwiegley/use-package/issues/1008 Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/use-package/use-package-core.el')
-rw-r--r--lisp/use-package/use-package-core.el4
1 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 f27d158fc05..135b1ca96b0 100644
--- a/lisp/use-package/use-package-core.el
+++ b/lisp/use-package/use-package-core.el
@@ -1501,7 +1501,7 @@ no keyword implies `:all'."
(defun use-package-normalize/:custom-face (name-symbol _keyword arg)
"Normalize use-package custom-face keyword."
(let ((error-msg
- (format "%s wants a (<symbol> <face-spec>) or list of these"
+ (format "%s wants a (<symbol> <face-spec> [spec-type]) or list of these"
name-symbol)))
(unless (listp arg)
(use-package-error error-msg))
@@ -1512,7 +1512,7 @@ no keyword implies `:all'."
(spec (nth 1 def)))
(when (or (not face)
(not spec)
- (> (length def) 2))
+ (> (length def) 3))
(use-package-error error-msg))))))
(defun use-package-handler/:custom-face (name _keyword args rest state)