org-agenda: bugfix: always refresh the agenda when needed.

* org-agenda.el (org-agenda-filter-by-tag): bugfix: always
refresh the agenda when needed.

Thanks to Nicolas Dudebout for pointing this out.
This commit is contained in:
Bastien Guerry 2011-07-28 11:43:56 +02:00
parent f0d7acfb78
commit 1fa0f027cd
1 changed files with 2 additions and 2 deletions

View File

@ -6202,8 +6202,8 @@ to switch to narrowing."
(org-agenda-filter-apply org-agenda-filter)
(setq maybe-refresh t))
(t (error "Invalid tag selection character %c" char)))
(when (and maybe-refresh
(eq org-agenda-clockreport-mode 'with-filter))
(when (or maybe-refresh
(eq org-agenda-clockreport-mode 'with-filter))
(org-agenda-redo))))
(defun org-agenda-get-represented-tags ()