org-agenda: Fix the last fix...

* lisp/org-agenda.el (org-tags-view): Fix last commit.
This commit is contained in:
Nicolas Goaziou 2018-05-11 21:55:23 +02:00
parent 68b376dee0
commit 640e05523a
1 changed files with 7 additions and 7 deletions

View File

@ -4751,13 +4751,13 @@ The prefix arg TODO-ONLY limits the search to TODO entries."
(setq match nil))
(catch 'exit
;; TODO: this code is repeated a lot...
(if org-agenda-sticky
(setq org-agenda-buffer-name
(if (stringp match)
(format "*Org Agenda(%s:%s)*"
(or org-keys (or (and todo-only "M") "m")) match)
(format "*Org Agenda(%s)*" (or (and todo-only "M") "m"))))
(setq matcher (org-make-tags-matcher match)))
(when org-agenda-sticky
(setq org-agenda-buffer-name
(if (stringp match)
(format "*Org Agenda(%s:%s)*"
(or org-keys (or (and todo-only "M") "m")) match)
(format "*Org Agenda(%s)*" (or (and todo-only "M") "m")))))
(setq matcher (org-make-tags-matcher match))
;; Prepare agendas (and `org-tag-alist-for-agenda') before
;; expanding tags within `org-make-tags-matcher'
(org-agenda-prepare (concat "TAGS " match))