Function: window--resize-root-window

window--resize-root-window is a byte-compiled function defined in window.el.gz.

Signature

(window--resize-root-window WINDOW DELTA HORIZONTAL IGNORE PIXELWISE)

Documentation

Resize root window WINDOW vertically by DELTA lines.

HORIZONTAL non-nil means resize root window WINDOW horizontally by DELTA columns.

IGNORE non-nil means ignore any restrictions imposed by fixed size windows, window-min-height or window-min-width settings.

This function is only called by the frame resizing routines. It resizes windows proportionally and never deletes any windows.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--resize-root-window (window delta horizontal ignore pixelwise)
  "Resize root window WINDOW vertically by DELTA lines.
HORIZONTAL non-nil means resize root window WINDOW horizontally
by DELTA columns.

IGNORE non-nil means ignore any restrictions imposed by fixed
size windows, `window-min-height' or `window-min-width' settings.

This function is only called by the frame resizing routines.  It
resizes windows proportionally and never deletes any windows."
  (when (and (windowp window) (numberp delta))
    (let ((pixel-delta
	   (if pixelwise
	       delta
	     (window--size-to-pixel window delta horizontal))))
      (when (window-sizable-p window pixel-delta horizontal ignore t)
	(window--resize-reset (window-frame window) horizontal)
	(window--resize-this-window
	 window pixel-delta horizontal ignore t)))))