From 3e24a7363b2966776c8e5145acf3d918ae1f5c6e Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Sun, 8 Nov 2020 14:58:08 +0000 Subject: [PATCH] Revert "use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice" This reverts commit 8c31c57106e2938d627bf4107627c003620d2dd5. --- lisp/use-package/use-package-core.el | 5 +---- 1 file changed, 1 insertion(+), 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))) -- 2.39.2