[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
- [elpa] externals/setup updated (7a78f66 -> 2503ad0), Stefan Monnier, 2021/04/14
- [elpa] externals/setup 669f0fb 01/25: Drop (remove ...) form for user options, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 5e201d7 06/25: Use custom-load-symbol for modifying :option moderations, Stefan Monnier, 2021/04/14
- [elpa] externals/setup ccf2ebf 09/25: Copy commentary changes to README, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 43092c2 11/25: Mention if no local macros are defined in setup docstring, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 7562f2f 12/25: Prevent :option values from being saved in the user theme,
Stefan Monnier <=
- [elpa] externals/setup 9a67209 14/25: Always call custom-load-symbol before customizing an option, Stefan Monnier, 2021/04/14
- [elpa] externals/setup f764229 15/25: Explain how :with-feature sets an implicit mode, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 439b4a8 02/25: Raise an error if lexical binding is not enabled, Stefan Monnier, 2021/04/14
- [elpa] externals/setup a77d9f2 03/25: Don't apply kbd to symbols in :global, :bind, :unbind and :rebind, Stefan Monnier, 2021/04/14
- [elpa] externals/setup ec23802 04/25: Check for duplicate elements with append/remove, Stefan Monnier, 2021/04/14
- [elpa] externals/setup df6f6eb 13/25: Add note on modifying option names, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 7e3d025 05/25: Update documentation for :option and :local-set, Stefan Monnier, 2021/04/14
- [elpa] externals/setup e1d51a3 07/25: Add (remove VAR) form for :option, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 7699c78 08/25: Reindent commentary examples, Stefan Monnier, 2021/04/14
- [elpa] externals/setup c707965 10/25: Handle symbols in :global, :bind, :unbind and :rebind, Stefan Monnier, 2021/04/14