From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Using org-agenda-filter-preset with or'd tags Date: Tue, 11 Jan 2011 08:22:45 -0500 Message-ID: <8739oz4lsq.fsf@fastmail.fm> References: <87tyhikwkg.wl%dmaus@ictsoc.de> <877heb4lw7.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33321 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PceBT-0003O8-Kx for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 08:22:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PceBS-00074C-J4 for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 08:22:47 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:60580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PceBS-000744-GU for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 08:22:46 -0500 In-Reply-To: <877heb4lw7.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 11 Jan 2011 08:20:40 -0500") 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: David Maus Cc: johnt , emacs-orgmode@gnu.org 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