* lisp/window.el (window--process-window-list): No-op if no processes.
This avoids an issue with save-selected-window (from walk-windows) failing if frame.el is not loaded, eg if the terminal is resized during startup of a -nw CANNOT_DUMP build. (Bug#23369).
This commit is contained in:
parent
734fb3ac6c
commit
5c3534ffdc
1 changed files with 19 additions and 18 deletions
|
@ -8520,6 +8520,7 @@ A window is associated with a process if that window is
|
||||||
displaying that processes's buffer."
|
displaying that processes's buffer."
|
||||||
(let ((processes (process-list))
|
(let ((processes (process-list))
|
||||||
(process-windows nil))
|
(process-windows nil))
|
||||||
|
(if processes
|
||||||
(walk-windows
|
(walk-windows
|
||||||
(lambda (window)
|
(lambda (window)
|
||||||
(let ((buffer (window-buffer window))
|
(let ((buffer (window-buffer window))
|
||||||
|
@ -8537,7 +8538,7 @@ displaying that processes's buffer."
|
||||||
;; stop iterating over the process list.
|
;; stop iterating over the process list.
|
||||||
nil)
|
nil)
|
||||||
(setf iter (cdr iter)))))))
|
(setf iter (cdr iter)))))))
|
||||||
1 t)
|
1 t))
|
||||||
process-windows))
|
process-windows))
|
||||||
|
|
||||||
(defun window--adjust-process-windows ()
|
(defun window--adjust-process-windows ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue