Function: window-adjust-process-window-size
window-adjust-process-window-size is a byte-compiled function defined
in window.el.gz.
Signature
(window-adjust-process-window-size REDUCER WINDOWS)
Documentation
Adjust the window sizes of a process.
WINDOWS is a list of windows associated with that process. REDUCER is a two-argument function used to combine the widths and heights of the given windows.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-adjust-process-window-size (reducer windows)
"Adjust the window sizes of a process.
WINDOWS is a list of windows associated with that process. REDUCER is
a two-argument function used to combine the widths and heights of
the given windows."
(when windows
(let ((width (window-max-chars-per-line (car windows)))
(height (with-selected-window (car windows)
(floor (window-screen-lines)))))
(dolist (window (cdr windows))
(setf width (funcall reducer width (window-max-chars-per-line window)))
(setf height (funcall reducer height (with-selected-window window
(floor (window-screen-lines))))))
(cons width height))))