branch: externals/window-commander commit f66c043abcbed33f4270ac4511cbd78f2efd5509 Author: Daniel Semyonov <cm...@dsemy.com> Commit: Daniel Semyonov <cm...@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.