[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
- [elpa] externals/setup df6f6eb 13/25: Add note on modifying option names, (continued)
- [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
- [elpa] externals/setup ea52eb1 17/25: Add note that :option does not manipulate user theme., Stefan Monnier, 2021/04/14
- [elpa] externals/setup 2503ad0 25/25: Expand load path for :load-from, Stefan Monnier, 2021/04/14
- [elpa] externals/setup d44d333 20/25: Add :load-from macro, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 5728369 18/25: Fix shell example in README and Commentary section, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 22b5312 23/25: Add :file-match macro, Stefan Monnier, 2021/04/14
- [elpa] externals/setup f7d5906 16/25: Replace customize-set-variable with the necessary parts,
Stefan Monnier <=
- [elpa] externals/setup b7aa594 19/25: Allow :hook-into to also use hook names, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 757de04 21/25: Replace yasnippet example with dired, Stefan Monnier, 2021/04/14
- [elpa] externals/setup bc0edb4 24/25: Handle argument list for :load-from properly, Stefan Monnier, 2021/04/14
- [elpa] externals/setup 32e4f7f 22/25: Fix syntax in examples, Stefan Monnier, 2021/04/14