Function: org-current-text-column

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

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 /usr/src/emacs/lisp/org/org-macs.el.gz
(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) (error "Tab width in Org files must be 8, not %d.  Please adjust your `tab-width' settings for Org mode" tab-width))
     (string-width (buffer-substring-no-properties
                    (line-beginning-position) (point)))))