Function: org--string-width-1

org--string-width-1 is a byte-compiled function defined in org-macs.el.gz.

Signature

(org--string-width-1 STRING)

Documentation

Return width of STRING when displayed in the current buffer.

Unlike string-width, this function takes into consideration invisible and display text properties. It supports the latter in a limited way, mostly for combinations used in Org. Results may be off sometimes if it cannot handle a given display value.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-macs.el.gz
(defun org--string-width-1 (string)
  "Return width of STRING when displayed in the current buffer.
Unlike `string-width', this function takes into consideration
`invisible' and `display' text properties.  It supports the
latter in a limited way, mostly for combinations used in Org.
Results may be off sometimes if it cannot handle a given
`display' value."
  (org--string-from-props string 'display 0 (length string)))