branch: externals/window-commander
commit ccab7194a7e3c4423dd8f5ad37ecec56d07728fe
Author: Daniel Semyonov <[email protected]>
Commit: Daniel Semyonov <[email protected]>
Use 'custom-initialize-changed' to initialize some user options
* swsw.el (swsw-id-chars, swsw-scope): Use the ':initialize' keyword
with the 'custom-initialize-changed' function.
---
swsw.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/swsw.el b/swsw.el
index 1be2f7e586..089ab3d451 100644
--- a/swsw.el
+++ b/swsw.el
@@ -85,13 +85,13 @@
This list should contain at least two characters."
:link '(info-link "(swsw)Customization")
:type '(repeat character)
+ :initialize #'custom-initialize-changed
:set (lambda (sym chars)
(unless (nth 1 chars)
(user-error
"`swsw-id-chars' should contain at least two characters"))
(set-default sym chars)
- (when (fboundp 'swsw--update)
- (swsw--update)))
+ (swsw--update))
:risky t
:package-version '(swsw . 1.0))
@@ -110,10 +110,10 @@ This list should contain at least two characters."
(const
:tag "All windows on the currently selected frame"
current))
+ :initialize #'custom-initialize-changed
:set (lambda (sym scope)
(set-default sym scope)
- (when (fboundp 'swsw--update)
- (swsw--update)))
+ (swsw--update))
:risky t
:package-version '(swsw . 1.1))