[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Sticky agendas not redone when using org-agenda-(set|remove)-res
From: |
Nikolai Weibull |
Subject: |
Re: [O] Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock |
Date: |
Sun, 15 Feb 2015 22:54:02 +0100 |
On Mon, Jan 19, 2015 at 6:38 PM, Nicolas Goaziou <address@hidden> wrote:
> Nikolai Weibull <address@hidden> 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)
- Re: [O] Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock,
Nikolai Weibull <=