From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Using org-agenda-filter-preset with or'd tags Date: Sun, 09 Jan 2011 14:58:55 +0100 Message-ID: <87tyhikwkg.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1859040498==" Return-path: Received: from [140.186.70.92] (port=40156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pbvnz-0002gd-T4 for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:59:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pbvny-0006XU-IH for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:59:35 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:36450 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pbvny-0006Wq-C4 for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:59:34 -0500 In-Reply-To: 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: johnt Cc: emacs-orgmode@gnu.org --===============1859040498== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jan__9_14:58:55_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Jan__9_14:58:55_2011-1 Content-Type: text/plain; charset=US-ASCII At Mon, 20 Dec 2010 14:12:39 +0000 (UTC), johnt wrote: > > I am trying to set a custom command to show my work tasks and critical home > tasks for the day. > > I have tried the following. > > (setq org-agenda-custom-commands > > '( > > ("W" "Work Schedule" > > ( > > (agenda "" > > ( > > (org-agenda-filter-preset '("@Work|critical")) ;; this doesn't work > > (org-agenda-ndays 1) > > ) > > ) > > (tags-todo "@Work|critical") > > ) > > ) > > ) > > It seems just to ignore the filter. The tags-todo line works fine. > > I tried various filters to verify my syntax. > using (org-agenda-filter-preset '("+@Work")) works fine but is not what I want. > using (org-agenda-filter-preset '("@Work" "|" "critical")) also doesn't work. There are some errors in your `org-agenda-filter-preset': 1. You should not quote this list, because the entire structure of `org-agenda-custom-commands' is already quoted. 2. Format of `org-agenda-filter-preset' (C-h v org-agenda-filter-preset RET): ,---- | A preset of the tags filter used for secondary agenda filtering. | This must be a list of strings, each string must be a single tag preceded | by "+" or "-". `---- So ("@work" "|" "critical") is wrong format. 3. The preset filter ANDs the tags together and as far as I am aware of (our could think of) it is not possible to OR tags together. However, I wonder why you would like to set the preset-filter: The tags-todo query already selects only tasks that are either tagged @work or critical? HTH, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Jan__9_14:58:55_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk0pvx8ACgkQma24O1pEeOacAQEAuRtkhJTlEhPOLZXPTDtJ5xPa gXhR6r3GrWAg5Dz76hQA+wYU47a8QpvBWCXh3OXYgGGZD6GrJjwDLyifsRBV9CRd =j3qZ -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jan__9_14:58:55_2011-1-- --===============1859040498== 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 --===============1859040498==--