From c5c763a9aca8cfd8a707b0d7e814bc37f5eeafa1 Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Thu, 19 Jan 2017 08:39:50 +0100 Subject: [PATCH] Make `org-tags-view' stop setting globally `org--matcher-tags-todo-only' `org--matcher-tags-todo-only' is used at several places in the code. The first call of `org-tags-view' that changes its value, like C-u M-x org-tags-view has the side effect of making all other commands that don't set this value explicitely rely on this value. * lisp/org-agenda.el (org-tags-view): Add the declaration of `org--matcher-tags-todo-only' in the let form --- lisp/org-agenda.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 737e1841f..ac4bde389 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4681,6 +4681,7 @@ The prefix arg TODO-ONLY limits the search to TODO entries." org-tags-match-list-sublevels) (completion-ignore-case t) rtn rtnall files file pos matcher + org--matcher-tags-todo-only buffer) (when (and (stringp match) (not (string-match "\\S-" match))) (setq match nil)) -- 2.11.0