浏览代码

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.
Bastien Guerry 13 年之前
父节点
当前提交
1fa0f027cd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/org-agenda.el

+ 2 - 2
lisp/org-agenda.el

@@ -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 ()