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

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

[nongnu] elpa/swsw ccab7194a7 133/146: Use 'custom-initialize-changed' t


From: ELPA Syncer
Subject: [nongnu] elpa/swsw ccab7194a7 133/146: Use 'custom-initialize-changed' to initialize some user options
Date: Wed, 25 May 2022 02:59:55 -0400 (EDT)

branch: elpa/swsw
commit ccab7194a7e3c4423dd8f5ad37ecec56d07728fe
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>

    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))
 



reply via email to

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