Function: org-remove-uninherited-tags
org-remove-uninherited-tags is a byte-compiled function defined in
org.el.gz.
Signature
(org-remove-uninherited-tags TAGS)
Documentation
Remove all tags that are not inherited from the list TAGS.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-remove-uninherited-tags (tags)
"Remove all tags that are not inherited from the list TAGS."
(cond
((eq org-use-tag-inheritance t)
(if org-tags-exclude-from-inheritance
(org-delete-all org-tags-exclude-from-inheritance tags)
tags))
((not org-use-tag-inheritance) nil)
((stringp org-use-tag-inheritance)
(delq nil (mapcar
(lambda (x)
(if (and (string-match org-use-tag-inheritance x)
(not (member x org-tags-exclude-from-inheritance)))
x nil))
tags)))
((listp org-use-tag-inheritance)
(delq nil (mapcar
(lambda (x)
(if (member x org-use-tag-inheritance) x nil))
tags)))))