From: Nikolai Weibull <now@disu.se>
To: Nikolai Weibull <now@disu.se>, emacs-orgmode@gnu.org
Subject: Re: Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock
Date: Sun, 15 Feb 2015 22:54:02 +0100 [thread overview]
Message-ID: <CADdV=MsZQnJQwvuOXffDGZaBECvfkU4kK0pVWi354sz0p07+tg@mail.gmail.com> (raw)
In-Reply-To: <87sif6acxf.fsf@nicolasgoaziou.fr>
On Mon, Jan 19, 2015 at 6:38 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Nikolai Weibull <now@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)
next prev parent reply other threads:[~2015-02-15 21:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 18:10 Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock Nikolai Weibull
2015-01-07 17:51 ` Nikolai Weibull
2015-01-18 9:55 ` Nikolai Weibull
2015-01-18 10:26 ` Nicolas Goaziou
2015-01-18 13:27 ` Nikolai Weibull
2015-01-18 22:39 ` Nicolas Goaziou
2015-01-19 9:33 ` Nikolai Weibull
2015-01-19 17:38 ` Nicolas Goaziou
2015-02-15 21:54 ` Nikolai Weibull [this message]
2015-02-16 9:05 ` Nicolas Goaziou
2015-08-19 23:37 ` Nikolai Weibull
2015-08-20 17:02 ` Nikolai Weibull
2015-08-20 17:02 ` [PATCH 1/2] Redo Agenda in more cases even in sticky mode Nikolai Weibull
2015-08-20 17:21 ` Sticky agendas not redone when using org-agenda-(set|remove)-restriction-lock Bastien
2015-08-20 18:31 ` Nikolai Weibull
2015-08-23 7:56 ` Nicolas Goaziou
2015-08-20 18:22 ` [PATCH 1/2] Redo Agenda in more cases even in sticky mode Nikolai Weibull
2015-08-20 18:25 ` Nikolai Weibull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADdV=MsZQnJQwvuOXffDGZaBECvfkU4kK0pVWi354sz0p07+tg@mail.gmail.com' \
--to=now@disu.se \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.