Function: truncated-partial-width-window-p

truncated-partial-width-window-p is a byte-compiled function defined in window.el.gz.

Signature

(truncated-partial-width-window-p &optional WINDOW)

Documentation

Return non-nil if lines in WINDOW are specifically truncated due to its width.

WINDOW must be a live window and defaults to the selected one. Return nil if WINDOW is not a partial-width window
 (regardless of the value of truncate-lines).
Otherwise, consult the value of truncate-partial-width-windows
 for the buffer shown in WINDOW.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun truncated-partial-width-window-p (&optional window)
  "Return non-nil if lines in WINDOW are specifically truncated due to its width.
WINDOW must be a live window and defaults to the selected one.
Return nil if WINDOW is not a partial-width window
 (regardless of the value of `truncate-lines').
Otherwise, consult the value of `truncate-partial-width-windows'
 for the buffer shown in WINDOW."
  (setq window (window-normalize-window window t))
  (unless (window-full-width-p window)
    (let ((t-p-w-w (buffer-local-value 'truncate-partial-width-windows
				       (window-buffer window))))
      (if (integerp t-p-w-w)
	  (< (window-total-width window) t-p-w-w)
        t-p-w-w))))