From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miro Bezjak Subject: Re: multiple agenda custom commands causes tag-filter-preset not to work? Date: Sat, 7 Dec 2013 22:14:48 +0100 Message-ID: References: <87zjoe59wi.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113637d41be91d04ecf8439d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VpPDm-0005Cz-W4 for emacs-orgmode@gnu.org; Sat, 07 Dec 2013 16:15:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VpPDl-000772-Nx for emacs-orgmode@gnu.org; Sat, 07 Dec 2013 16:15:30 -0500 In-Reply-To: <87zjoe59wi.fsf@bzg.ath.cx> 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 --001a113637d41be91d04ecf8439d Content-Type: text/plain; charset=UTF-8 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 wrote: > Hi Miro, > > Miro Bezjak 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 > --001a113637d41be91d04ecf8439d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 '(("h" "home"
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ((agenda "" ((org-agenda-span 'day)<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-agenda-skip-functi= on '(org-agenda-skip-entry-if 'regexp ":work:"))))
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (alltodo)))))
------= ------------------------------------------------------

Kind Re= gards,
Miro



On Fri, Dec 6, 2013 at 3:30 PM, Bastien = <bzg@gnu.org> wrote:
Hi Miro,

Miro Bezjak <bezjak.miro@gmail.= com> writes:

> It appears that `org-agenda-tag-filter-preset&= #39; 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,

--
=C2=A0Bastien

--001a113637d41be91d04ecf8439d--