On Mon, Jan 19, 2015 at 6:38 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Nikolai Weibull <n...@disu.se> writes: > >> On Sun, Jan 18, 2015 at 11:39 PM, Nicolas Goaziou > >>> It could make sense, but the current behaviour is simple and >>> consistent : always refresh manually, no exception. >> >> I don’t agree that this is consistent at all. The Agenda is refreshed >> when you run, for example, org-agenda-filter-by-category, which, in my >> mind, is similar to setting a restriction. > > I didn't know an exception existed. Do you want to provide a patch for > this, then?
Hi! Sorry for the late reply. Here’s a patch that should work: diff -u org-agenda.el.orig org-agenda.el --- org-agenda.el.orig 2015-01-18 10:31:12.000000000 +0100 +++ org-agenda.el 2015-02-15 22:25:41.000000000 +0100 @@ -7135,7 +7135,9 @@ (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)