From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Tarbotton Subject: Re: Using org-agenda-filter-preset with or'd tags Date: Tue, 11 Jan 2011 18:01:28 -0500 Message-ID: References: <87tyhikwkg.wl%dmaus@ictsoc.de> <877heb4lw7.fsf@fastmail.fm> <8739oz4lsq.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1169877846==" Return-path: Received: from [140.186.70.92] (port=33878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcnDe-0003zp-3r for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 18:01:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcnDV-0006oj-UO for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 18:01:37 -0500 Received: from mail-yi0-f41.google.com ([209.85.218.41]:35013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcnDV-0006oe-Qu for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 18:01:29 -0500 Received: by yia25 with SMTP id 25so6637204yia.0 for ; Tue, 11 Jan 2011 15:01:28 -0800 (PST) In-Reply-To: <8739oz4lsq.fsf@fastmail.fm> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: David Maus , emacs-orgmode@gnu.org --===============1169877846== Content-Type: multipart/alternative; boundary=0016e644cb7c8ff8b804999a10c4 --0016e644cb7c8ff8b804999a10c4 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 11, 2011 at 08:22, Matt Lundin wrote: > Matt Lundin writes: > > > To use "or" logic to filter the agenda, I would recommend setting > > org-agenda-skip-function. > > > > (setq org-agenda-custom-commands > > '(("W" "Work Schedule" > > ((agenda "" > > ((org-agenda-skip-function '(org-agenda-skip-entry-if > 'notregexp ":\\(@Work\\|critical\\):"))) > > (org-agenda-ndays 1))) > > (tags-todo "@Work|critical"))))) > > > > The above contains a typo. It should read: > > (setq org-agenda-custom-commands > '(("W" "Work Schedule" > ((agenda "" > ((org-agenda-skip-function '(org-agenda-skip-entry-if > 'notregexp ":\\(@Work\\|critical\\):")) > (org-agenda-ndays 1))) > (tags-todo "@Work|critical"))))) > > Best, > Matt > Thanks for the suggestion. It did not completely work for me because the @Work tag was inherited. However I think I can change my process a little to make it work. John --0016e644cb7c8ff8b804999a10c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Jan 11, 2011 at 08:22, Matt Lundin <mdl@imapmail.org&g= t; wrote:
Matt Lundin <mdl@i= mapmail.org> writes:

> To use "or" logic to filter the agenda, I would recommend se= tting
> org-agenda-skip-function.
>
> (setq org-agenda-custom-commands
> =A0 =A0 =A0 '(("W" "Work Schedule"
> =A0 =A0 =A0 =A0 =A0((agenda ""
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ((org-agenda-skip-function '(org-a= genda-skip-entry-if 'notregexp ":\\(@Work\\|critical\\):")))<= br> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(org-agenda-ndays 1)))
> =A0 =A0 =A0 =A0 =A0 (tags-todo "@Work|critical")))))
>

The above contains a typo. It should read:

(setq org-agenda-custom-commands
=A0 =A0 =A0'(("W" "Work Schedule"
=A0 =A0 =A0 =A0 ((agenda ""
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0((org-agenda-skip-function '(org-ag= enda-skip-entry-if 'notregexp ":\\(@Work\\|critical\\):")) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-agenda-ndays 1)))
=A0 =A0 =A0 =A0 =A0(tags-todo "@Work|critical")))))

Best,
Matt

Thanks for the suggestion.=A0 It did not comp= letely work for me because the @Work tag was inherited. However I think I c= an change my process a little to make it work.

John
--0016e644cb7c8ff8b804999a10c4-- --===============1169877846== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1169877846==--