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

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

[elpa] externals/setup 7562f2f 12/25: Prevent :option values from being


From: Stefan Monnier
Subject: [elpa] externals/setup 7562f2f 12/25: Prevent :option values from being saved in the user theme
Date: Wed, 14 Apr 2021 18:49:01 -0400 (EDT)

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

    Prevent :option values from being saved in the user theme
    
    This tells customize not to create a duplicate custom-set-variables
    block with the customized value.
---
 setup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.el b/setup.el
index c53a821..37f5670 100644
--- a/setup.el
+++ b/setup.el
@@ -363,7 +363,8 @@ the first FEATURE."
             ((error "Invalid option %S" name)))
       (macroexp-progn
        (append (and load-p `((custom-load-symbol ',name)))
-               `((customize-set-variable ',name ,val "Modified by 
`setup'"))))))
+               `((customize-set-variable ',name ,val "Modified by `setup'")
+                 (custom-push-theme 'theme-value ',name 'user 'reset))))))
   :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]