Function: org-columns--overlay-text

org-columns--overlay-text is a byte-compiled function defined in org-colview.el.gz.

Signature

(org-columns--overlay-text VALUE FMT WIDTH PROPERTY ORIGINAL)

Documentation

Return decorated VALUE string for columns overlay display.

FMT is a format string. WIDTH is the width of the column, as an integer. PROPERTY is the property being displayed, as a string. ORIGINAL is the real string, i.e., before it is modified by org-columns--displayed-value.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-colview.el.gz
(defun org-columns--overlay-text (value fmt width property original)
  "Return decorated VALUE string for columns overlay display.
FMT is a format string.  WIDTH is the width of the column, as an
integer.  PROPERTY is the property being displayed, as a string.
ORIGINAL is the real string, i.e., before it is modified by
`org-columns--displayed-value'."
  (format fmt
          (let ((v (org-columns-add-ellipses value width)))
            (pcase property
              ("PRIORITY"
               (propertize v 'face (org-get-priority-face original)))
              ("TAGS"
               (if (not org-tags-special-faces-re)
                   (propertize v 'face 'org-tag)
                 (replace-regexp-in-string
                  org-tags-special-faces-re
                  (lambda (m) (propertize m 'face (org-get-tag-face m)))
                  v nil nil 1)))
              ("TODO" (propertize v 'face (org-get-todo-face original)))
              (_ v)))))