org.el (org-scan-tags): The skipper already checks for archived entries

* org.el (org-scan-tags): The skipper already checks for
archived entries.
This commit is contained in:
Bastien Guerry 2013-01-07 12:57:27 +01:00
parent e4df4e9ffd
commit aaf14258eb
1 changed files with 1 additions and 10 deletions

View File

@ -13150,18 +13150,9 @@ headlines matching this string."
(or (not todo-only)
(and (member todo org-not-done-keywords)
(or (not org-agenda-tags-todo-honor-ignore-options)
(not (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item)))))
;; Extra check for the archive tag
;; FIXME: Does the skipper already do this????
(or
(not (member org-archive-tag tags-list))
;; we have an archive tag, should we use this anyway?
(or (not org-agenda-skip-archived-trees)
(and (eq action 'agenda) org-agenda-archives-mode))))
(not (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item))))))
;; select this headline
(cond
((eq action 'sparse-tree)
(and org-highlight-sparse-tree-matches