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: Thu, 20 Aug 2015 20:31:53 +0200 Message-ID: References: <87h9umi5vb.fsf@nicolasgoaziou.fr> <1440090154-33109-1-git-send-email-now@disu.se> <874mjtri37.fsf@free.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]:39546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSUd1-0003mF-Do for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 14:31:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSUd0-0001xJ-Ix for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 14:31:55 -0400 In-Reply-To: <874mjtri37.fsf@free.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: Bastien Cc: emacs-orgmode@gnu.org I am so disappointed with everything that has to do with e-mail right now. For some reason the e-mail isn=E2=80=99t being delivered. I assume i= t=E2=80=99s not being accepted by the mailing list, but I can=E2=80=99t see why. I=E2= =80=99m not getting any error message. Anyway, here=E2=80=99s the relevant part (and let=E2=80=99s see if this e-m= ail gets through): * 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=E2=80=99s 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. --- lisp/org-agenda.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 07b77ac..5fd1cd4 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -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) --=20 2.5.0 On Thu, Aug 20, 2015 at 7:21 PM, Bastien wrote: > Hi Nikolai, > >> Here=E2=80=99s the patch again, as I don=E2=80=99t think the one I sent = yesterday got >> through. My FSF papers are signed, by the way. > > It looks like you forgot to attach the patch... > > -- > Bastien