[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ement 35ea510bbf 4/4: Fix: (ement-room-read-receipt-tim
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ement 35ea510bbf 4/4: Fix: (ement-room-read-receipt-timer) Use window-live-p |
Date: |
Fri, 9 Sep 2022 17:57:44 -0400 (EDT) |
branch: externals/ement
commit 35ea510bbf8374ac742be482687e400ddaf7eb23
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Fix: (ement-room-read-receipt-timer) Use window-live-p
This may fix a weird bug introduced in the last commit or
two (involving variable-binding-depth errors, timers running
repeatedly and making Emacs unresponsive, etc--I have no idea how the
changes could have caused such a thing, but they apparently did).
---
ement-room.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ement-room.el b/ement-room.el
index a0c2bcb515..112dc066a0 100644
--- a/ement-room.el
+++ b/ement-room.el
@@ -2458,7 +2458,7 @@ WINDOW's end is beyond the marker. For use in
"Send read receipt for WINDOW displaying ROOM-BUFFER.
To be called by timer run by
`ement-room-start-read-receipt-timer'."
- (when (and (windowp window)
+ (when (and (window-live-p window)
(eq (window-buffer window) room-buffer))
(with-selected-window window
(let ((read-receipt-node (ement-room--ewoc-last-matching ement-ewoc