Skip to content

Commit 4b4d2c0

Browse files
committed
* xcb-debug.el (xcb-debug:-with-debug-buffer): Ensure window is alive.
1 parent 117cf88 commit 4b4d2c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xcb-debug.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ Here are some predefined candidates:
7777
`(with-current-buffer (xcb-debug:-get-buffer)
7878
(let (windows-eob)
7979
;; Note windows whose point is at EOB.
80-
(dolist (w (get-buffer-window-list xcb-debug:buffer t 'nomini))
81-
(when (= (window-point w) (point-max))
80+
(dolist (w (get-buffer-window-list (current-buffer) t 'nomini))
81+
(when (and (window-live-p w)
82+
(= (window-point w) (point-max)))
8283
(push w windows-eob)))
8384
(save-excursion
8485
(goto-char (point-max))

0 commit comments

Comments
 (0)