Function: frame-width

frame-width is a byte-compiled function defined in frame.el.gz.

Signature

(frame-width &optional FRAME)

Documentation

Return number of columns available for display on FRAME.

If FRAME is omitted, describe the currently selected frame.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frame-width (&optional frame)
  "Return number of columns available for display on FRAME.
If FRAME is omitted, describe the currently selected frame."
  (cdr (assq 'width (frame-parameters frame))))