Function: org-agenda-get-represented-tags

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

Signature

(org-agenda-get-represented-tags)

Documentation

Return a list of all tags used in this agenda buffer.

These will be lower-case, for filtering.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-get-represented-tags ()
  "Return a list of all tags used in this agenda buffer.
These will be lower-case, for filtering."
  (or org-agenda-represented-tags
      (when (derived-mode-p 'org-agenda-mode)
	(let ((pos (point-min)) tags-lists tt)
	  (while (and (< pos (point-max))
		      (setq pos (next-single-property-change
				 pos 'tags nil (point-max))))
	    (setq tt (get-text-property pos 'tags))
	    (if tt (push tt tags-lists)))
	  (setq tags-lists
		(nreverse (org-uniquify
			   (delq nil (apply #'append tags-lists)))))
	  (dolist (tag tags-lists)
	    (mapc
	     (lambda (group)
	       (when (member tag group)
		 (push (car group) tags-lists)))
	     org-tag-groups-alist-for-agenda))
	  (setq org-agenda-represented-tags tags-lists)))))