branch: externals/window-commander commit 0b67d7bc00e6fa7ede6798fc426eaff8845a2d81 Author: Daniel Semyonov <cm...@dsemy.com> Commit: Daniel Semyonov <cm...@dsemy.com>
* swsw.el (swsw-display-function): Define early only when byte-compiling --- swsw.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swsw.el b/swsw.el index 7d603706f9..33cf1f33dd 100644 --- a/swsw.el +++ b/swsw.el @@ -89,7 +89,8 @@ t means consider all windows on all existing frames. (const :tag "All window on the currently selected frame" current))) -(defvar swsw-display-function) ; Avoid byte-compilation warning. +(eval-when-compile ; Avoid byte-compilation warning. + (defvar swsw-display-function)) (defun swsw--set-display-function (sym fun) "Set the variable ‘swsw-display-function’.