]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix sanity check for correct :custom-face format
authorwouter bolsterlee <wouter@bolsterl.ee>
Wed, 20 Dec 2017 07:31:56 +0000 (08:31 +0100)
committerwouter bolsterlee <wouter@bolsterl.ee>
Wed, 20 Dec 2017 07:31:56 +0000 (08:31 +0100)
Instead of testing the length of each form passed to :custom-face,
the sanity check would test the number of forms passed to :custom-face,
causing it to fail when more than 2 face customisations are used.

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

Copyright-paperwork-exempt: yes

lisp/use-package/use-package-core.el

index 80f1fe1f1d05b0564a51989a5121de7045b89380..1e52428f52289df91861a6789af27bf37e78db47 100644 (file)
@@ -1351,7 +1351,7 @@ no keyword implies `:all'."
             (spec (nth 1 def)))
         (when (or (not face)
                   (not spec)
-                  (> (length arg) 2))
+                  (> (length def) 2))
           (use-package-error error-msg))))))
 
 (defun use-package-handler/:custom-face (name keyword args rest state)