summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Zlatanov <tzz@lifelogs.com>2020-11-08 14:58:08 +0000
committerTed Zlatanov <tzz@lifelogs.com>2020-11-29 12:09:48 +0000
commit3e24a7363b2966776c8e5145acf3d918ae1f5c6e (patch)
tree23755ff71b1fc725780f2db431abb075e524321d
parent8ef7978028c3edaf47fb40a84fee576c4355753f (diff)
downloademacs-3e24a7363b.tar.gz
Revert "use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice"
-rw-r--r--lisp/use-package/use-package-core.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el
index 540c7349db0..be43c65cd4f 100644
--- a/lisp/use-package/use-package-core.el
+++ b/lisp/use-package/use-package-core.el
@@ -1394,10 +1394,7 @@ no keyword implies `:all'."
(comment (nth 2 def)))
(unless (and comment (stringp comment))
(setq comment (format "Customized with use-package %s" name)))
- `(funcall (or (get (quote ,variable) 'custom-set) #'set-default)
- (quote ,variable)
- ,value)
- `(put (quote ,variable) 'saved-variable-comment ,comment)))
+ `(customize-set-variable (quote ,variable) ,value ,comment)))
args)
(use-package-process-keywords name rest state)))