Revert "use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice"

This reverts commit 8c31c57106.
This commit is contained in:
Ted Zlatanov 2020-11-08 14:58:08 +00:00
parent 8ef7978028
commit 3e24a7363b

View file

@ -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)))