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

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

[nongnu] elpa/swsw f66c043abc 067/146: Only call 'swsw-update' automatic


From: ELPA Syncer
Subject: [nongnu] elpa/swsw f66c043abc 067/146: Only call 'swsw-update' automatically when it's bound
Date: Wed, 25 May 2022 02:59:45 -0400 (EDT)

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

    Only call 'swsw-update' automatically when it's bound
    
    * swsw.el (swsw--set-id-chars, swsw--set-scope): Only call
    'swsw-update' automatically when it's bound.
---
 swsw.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/swsw.el b/swsw.el
index e68c02e61d..76bde8c4f8 100644
--- a/swsw.el
+++ b/swsw.el
@@ -72,7 +72,8 @@ CHARS, and call ‘swsw-update’."
       (user-error
        "‘swsw-id-chars’ should contain at least two characters")
     (set-default sym chars)
-    (swsw-update)))
+    (when (fboundp 'swsw-update)
+      (swsw-update))))
 
 (defcustom swsw-id-chars '(?a ?s ?d ?f ?g ?h ?j ?k ?l)
   "Base set of characters from which window IDs are constructed.
@@ -88,7 +89,8 @@ This list should contain at least two characters."
   "Set the variable ‘swsw-scope’.
 Set SYM’s value to SCOPE and call ‘swsw-update’."
   (set-default sym scope)
-  (swsw-update))
+  (when (fboundp 'swsw-update)
+    (swsw-update)))
 
 (defcustom swsw-scope t
   "Scope of all window operations.



reply via email to

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