From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnt Subject: Using org-agenda-filter-preset with or'd tags Date: Mon, 20 Dec 2010 14:12:39 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34010 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUgb1-00027Z-6P for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 09:20:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUgar-0000nW-NQ for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 09:20:06 -0500 Received: from lo.gmane.org ([80.91.229.12]:46634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUgar-0000nG-H0 for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 09:20:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PUgaq-0000CH-J8 for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 15:20:04 +0100 Received: from 191.sub-75-194-92.myvzw.com ([75.194.92.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 15:20:04 +0100 Received: from jtarbotton by 191.sub-75-194-92.myvzw.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 15:20:04 +0100 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: emacs-orgmode@gnu.org 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. As a side note when I print the agenda it seems to ignore the filter I set with [/][-][tab]tag. The printed version has the items not shown on screen. using GNU Emacs 23.2.1 - ORG 7.4 Thank-you