summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-04-23 06:11:29 (GMT)
committer Bastien Guerry <bzg@altern.org>2014-04-23 06:11:29 (GMT)
commite1e5c0776aafbc44f2f981b89fa4adb6be14bab0 (patch)
tree48cc0d9f96bba6292f1a86deb4a26394b8ed1a5d
parent1fa6ccab10c9f97dc9317f9c3eedea82c4cdc357 (diff)
downloadorg-mode-maint.zip
org-mode-maint.tar.gz
org-agenda.el (org-agenda-finalize): Filter by top headlinemaint
* org-agenda.el (org-agenda-finalize): Filter by top headline if `org-agenda-top-headline-filter' is set. Thanks to Brady Trainor for reporting this.
-rw-r--r--lisp/org-agenda.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 18fada1..c0c8753 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3746,6 +3746,9 @@ generating a new one."
(delete-dups
(mapcar 'downcase (org-get-tags-at))))))))))
(run-hooks 'org-agenda-finalize-hook)
+ (when org-agenda-top-headline-filter
+ (org-agenda-filter-top-headline-apply
+ org-agenda-top-headline-filter))
(when org-agenda-tag-filter
(org-agenda-filter-apply org-agenda-tag-filter 'tag))
(when (get 'org-agenda-tag-filter :preset-filter)