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

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

[nongnu] elpa/swsw 0b67d7bc00 056/146: * swsw.el (swsw-display-function)


From: ELPA Syncer
Subject: [nongnu] elpa/swsw 0b67d7bc00 056/146: * swsw.el (swsw-display-function): Define early only when byte-compiling
Date: Wed, 25 May 2022 02:59:44 -0400 (EDT)

branch: elpa/swsw
commit 0b67d7bc00e6fa7ede6798fc426eaff8845a2d81
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@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’.



reply via email to

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