Function: pixel-fill-width
pixel-fill-width is a byte-compiled function defined in
pixel-fill.el.gz.
Signature
(pixel-fill-width &optional COLUMNS WINDOW)
Documentation
Return the pixel width corresponding to COLUMNS in WINDOW.
If COLUMNS is nil or omitted, use the entire window width.
If WINDOW is nil or omitted, this defaults to the selected window.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/pixel-fill.el.gz
(defun pixel-fill-width (&optional columns window)
"Return the pixel width corresponding to COLUMNS in WINDOW.
If COLUMNS is nil or omitted, use the entire window width.
If WINDOW is nil or omitted, this defaults to the selected window."
(unless window
(setq window (selected-window)))
(let ((frame (window-frame window)))
(if columns
(* (frame-char-width frame) columns)
(- (window-body-width nil t)
(* 2 (frame-char-width frame))
;; We need to adjust the available width for when the user
;; disables the fringes, which will cause the display
;; engine usurp one column for the continuation glyph.
(if (and (fboundp 'fringe-columns)
(or (not (zerop (fringe-columns 'right)))
(not (zerop (fringe-columns 'left)))))
0
(* (frame-char-width frame) 2))
1))))