Function: window--adjust-process-windows

window--adjust-process-windows is a byte-compiled function defined in window.el.gz.

Signature

(window--adjust-process-windows)

Documentation

Update process window sizes to match the current window configuration.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--adjust-process-windows ()
  "Update process window sizes to match the current window configuration."
  (when (fboundp 'process-list)
    (dolist (procwin (window--process-window-list))
      (let ((process (car procwin)))
        (with-demoted-errors "Error adjusting window size: %S"
          (with-current-buffer (process-buffer process)
            (let ((size (funcall
                         (or (process-get process 'adjust-window-size-function)
                             window-adjust-process-window-size-function)
                         process (cdr procwin))))
              (when size
                (set-process-window-size process (cdr size) (car size))))))))))