Function: org-columns--clean-item

org-columns--clean-item is a byte-compiled function defined in org-colview.el.gz.

Signature

(org-columns--clean-item ITEM)

Documentation

Remove sensitive contents from string ITEM.

This includes objects that may not be duplicated within a document, e.g., a target, or those forbidden in tables, e.g., an inline src-block.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-colview.el.gz
(defun org-columns--clean-item (item)
  "Remove sensitive contents from string ITEM.
This includes objects that may not be duplicated within
a document, e.g., a target, or those forbidden in tables, e.g.,
an inline src-block."
  (let ((data (org-element-parse-secondary-string
	       item (org-element-restriction 'headline))))
    (org-element-map data
	'(footnote-reference inline-babel-call inline-src-block target
			     radio-target statistics-cookie)
      #'org-element-extract-element)
    (org-no-properties (org-element-interpret-data data))))