emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] multiple agenda custom commands causes tag-filter-preset not to


From: Miro Bezjak
Subject: Re: [O] multiple agenda custom commands causes tag-filter-preset not to work?
Date: Sat, 7 Dec 2013 22:14:48 +0100

Hi Bastien,

thank you for the explanation.

I've implemented the solution to my problem by using `agenda-skip-entry-if' instead of `org-agenda-tag-filter-preset'.

Example:
------------------------------------------------------------
(setq org-agenda-custom-commands
      '(("h" "home"
         ((agenda "" ((org-agenda-span 'day)
                      (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":work:"))))
          (alltodo)))))
------------------------------------------------------------

Kind Regards,
Miro



On Fri, Dec 6, 2013 at 3:30 PM, Bastien <address@hidden> wrote:
Hi Miro,

Miro Bezjak <address@hidden> writes:

> It appears that `org-agenda-tag-filter-preset' does not work when I
> define
> multiple commands under one. The agenda is rendered as if filter was
> never set.
>
> On the other hand, if I remove `(alltodo)', thus defining only the
> agenda, then
> the filter works without problems.

Yes, that's by design -- or more precisely, by lack of a good way to
filter agenda blocks.

HTH,

--
 Bastien


reply via email to

[Prev in Thread] Current Thread [Next in Thread]