From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolai Weibull Subject: Re: Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock Date: Sun, 15 Feb 2015 22:54:02 +0100 Message-ID: References: <87fvb8qt9z.fsf@nicolasgoaziou.fr> <874mrnbto7.fsf@nicolasgoaziou.fr> <87sif6acxf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN78e-00057r-Ts for emacs-orgmode@gnu.org; Sun, 15 Feb 2015 16:54:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YN78e-0008Nb-0O for emacs-orgmode@gnu.org; Sun, 15 Feb 2015 16:54:04 -0500 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:54142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN78d-0008NN-Q6 for emacs-orgmode@gnu.org; Sun, 15 Feb 2015 16:54:03 -0500 Received: by mail-wi0-f175.google.com with SMTP id r20so22426371wiv.2 for ; Sun, 15 Feb 2015 13:54:02 -0800 (PST) In-Reply-To: <87sif6acxf.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nikolai Weibull , emacs-orgmode@gnu.org On Mon, Jan 19, 2015 at 6:38 PM, Nicolas Goaziou w= rote: > Nikolai Weibull 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=E2=80=99t agree that this is consistent at all. The Agenda is ref= reshed >> 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=E2=80=99s 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)