Function: org--get-local-tags

org--get-local-tags is a byte-compiled function defined in org.el.gz.

Signature

(org--get-local-tags)

Documentation

Return list of tags for the current headline.

Assume point is at the beginning of the headline.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--get-local-tags ()
  "Return list of tags for the current headline.
Assume point is at the beginning of the headline."
  (let* ((cached (and (org-element--cache-active-p) (org-element-at-point nil 'cached)))
         (cached-tags (org-element-property :tags cached)))
    (if cached
        ;; If we do not explicitly copy the result, reference would
        ;; be returned and cache element might be modified directly.
        (mapcar #'copy-sequence cached-tags)
      ;; Parse tags manually.
      (and (looking-at org-tag-line-re)
           (split-string (match-string-no-properties 2) ":" t)))))