diff options
author | Ted Zlatanov <tzz@lifelogs.com> | 2020-11-08 14:58:08 +0000 |
---|---|---|
committer | Ted Zlatanov <tzz@lifelogs.com> | 2020-11-29 12:09:48 +0000 |
commit | 3e24a7363b2966776c8e5145acf3d918ae1f5c6e (patch) | |
tree | 23755ff71b1fc725780f2db431abb075e524321d | |
parent | 8ef7978028c3edaf47fb40a84fee576c4355753f (diff) | |
download | emacs-3e24a7363b.tar.gz |
Revert "use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice"
This reverts commit 8c31c57106e2938d627bf4107627c003620d2dd5.
-rw-r--r-- | lisp/use-package/use-package-core.el | 5 |
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))) |