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

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

[elpa] externals/jinx c77ddf5c8a 1/2: jinx--timer-handler: Check that wi


From: ELPA Syncer
Subject: [elpa] externals/jinx c77ddf5c8a 1/2: jinx--timer-handler: Check that window-buffer is non-nil (See #18)
Date: Wed, 29 Mar 2023 06:58:43 -0400 (EDT)

branch: externals/jinx
commit c77ddf5c8adf3edfb141e7c853a05814ae8a45e7
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    jinx--timer-handler: Check that window-buffer is non-nil (See #18)
---
 jinx.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/jinx.el b/jinx.el
index 6d927d4817..4ce2af0882 100644
--- a/jinx.el
+++ b/jinx.el
@@ -418,8 +418,9 @@ Returns a pair of updated (START END) bounds."
   (setq jinx--timer nil)
   (dolist (frame (frame-list))
     (dolist (win (window-list frame 'no-miniwindow))
-      (with-current-buffer (window-buffer win)
-        (when jinx-mode
+      (when-let ((buffer (window-buffer win))
+                 ((buffer-local-value 'jinx-mode buffer)))
+        (with-current-buffer buffer
           (with-selected-window win
             (jinx--check-pending)))))))
 



reply via email to

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