emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/setup f7d5906 16/25: Replace customize-set-variable wit


From: Stefan Monnier
Subject: [elpa] externals/setup f7d5906 16/25: Replace customize-set-variable with the necessary parts
Date: Wed, 14 Apr 2021 18:49:02 -0400 (EDT)

branch: externals/setup
commit f7d5906b74ce20fa939e909a9fde76e906c6d617
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Replace customize-set-variable with the necessary parts
---
 setup.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/setup.el b/setup.el
index 16b2d27..52d37ed 100644
--- a/setup.el
+++ b/setup.el
@@ -361,8 +361,9 @@ the first FEATURE."
           ((error "Invalid option %S" name)))
     `(progn
        (custom-load-symbol ',name)
-       (customize-set-variable ',name ,val "Modified by `setup'")
-       (custom-push-theme 'theme-value ',name 'user 'reset)))
+       (funcall (or (get ',name 'custom-set) #'set-default)
+                ',name ,val)
+       (put ',name 'variable-comment "Modified by `setup'")))
   :documentation "Set the option NAME to VAL.
 NAME may be a symbol, or a cons-cell.  If NAME is a cons-cell, it
 will use the car value to modify the behaviour.  These forms are



reply via email to

[Prev in Thread] Current Thread [Next in Thread]