Redo Agenda in more cases even in sticky mode

* org-agenda.el (org-agenda-maybe-redo): Test for
org-agenda-this-buffer-name as well.

The Agenda buffer will have a different name if it’s in sticky mode,
but some commands that alter the agenda should still redo it, for
example, org-agenda-remove-restriction-lock, just like
org-agenda-filter-by-category does.
This commit is contained in:
Nikolai Weibull 2015-08-20 19:02:34 +02:00 committed by Nicolas Goaziou
parent 6629a9b5ba
commit 983170c0bc

View file

@ -7169,7 +7169,9 @@ in the file. Otherwise, restriction will be to the current subtree."
(defun org-agenda-maybe-redo ()
"If there is any window showing the agenda view, update it."
(let ((w (get-buffer-window org-agenda-buffer-name t))
(let ((w (get-buffer-window (or org-agenda-this-buffer-name
org-agenda-buffer-name)
t))
(w0 (selected-window)))
(when w
(select-window w)