]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix broken test due to
authorJimmy Yuen Ho Wong <wyuenho@gmail.com>
Wed, 8 Jul 2020 03:57:39 +0000 (04:57 +0100)
committerTed Zlatanov <tzz@lifelogs.com>
Sun, 12 Jul 2020 19:57:49 +0000 (15:57 -0400)
GitHub-reference: https://github.com/jwiegley/use-package/issues/850

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

index 169dbc455bcce1722a10eaf4fc9af79922ddb3ad..94b8e45190316b3ed5418933be4afd737e1e2c59 100644 (file)
@@ -1563,7 +1563,7 @@ this file.  Usage:
 :load-path       Add to the `load-path' before attempting to load the package.
 :diminish        Support for diminish.el (if installed).
 :delight         Support for delight.el (if installed).
-:custom          Call `customize-set-variable' with each variable definition.
+:custom          Call `custom-set' or `set-default' with each variable definition.
 :custom-face     Call `customize-set-faces' with each face definition.
 :ensure          Loads the package using package.el if necessary.
 :pin             Pin the package to an archive."
index 6143818537380b848d663374325685b6297d0f07..1e89a5679ff467c9570f438619b2b57abec2496f 100644 (file)
   (match-expansion
    (use-package foo :custom (foo bar))
    `(progn
-      (customize-set-variable 'foo bar "Customized with use-package foo")
+      (funcall
+       (or
+        (get 'foo 'custom-set)
+        (function set-default))
+       'foo bar)
       (require 'foo nil nil))))
 
 (ert-deftest use-package-test/:custom-face-1 ()