Function: org-current-text-column

org-current-text-column is a macro defined in org-macs.el.

Signature

(org-current-text-column)

Documentation

Like current-column but ignore display properties.

Throw an error when tab-width is not 8.

This function forces tab-width value because it is used as a part of the parser, to ensure parser consistency when calculating list indentation.

Source Code

;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-macs.el
(defmacro org-current-text-column ()
  "Like `current-column' but ignore display properties.
Throw an error when `tab-width' is not 8.

This function forces `tab-width' value because it is used as a part of
the parser, to ensure parser consistency when calculating list
indentation."
  `(progn
     (unless (= 8 tab-width)
       (org--set-tab-width)
       (warn "Tab width in Org files must be 8, not %d.  Setting back to 8.  Please adjust your `tab-width' settings for Org mode" tab-width))
     (string-width (buffer-substring-no-properties
                    (line-beginning-position) (point)))))