Function: minibuffer-prompt-width

minibuffer-prompt-width is a byte-compiled function defined in simple.el.gz.

Signature

(minibuffer-prompt-width)

Documentation

Return the display width of the minibuffer prompt.

Return 0 if current buffer is not a minibuffer.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
;; For compatibility with the old subr of the same name.
(defun minibuffer-prompt-width ()
  "Return the display width of the minibuffer prompt.
Return 0 if current buffer is not a minibuffer."
  ;; Return the width of everything before the field at the end of
  ;; the buffer; this should be 0 for normal buffers.
  (1- (minibuffer-prompt-end)))