From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Accessing CATEGORY for custom agenda command Date: Fri, 11 Feb 2011 11:00:20 -0800 Message-ID: <0vtygacs6z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41937 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnyEO-0005Hw-HM for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 14:00:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnyEN-0005Ok-Hz for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 14:00:36 -0500 Received: from lo.gmane.org ([80.91.229.12]:33664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnyEN-0005OV-6l for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 14:00:35 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PnyEL-0004Ja-Gh for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 20:00:33 +0100 Received: from mail.cdrd.ca ([142.103.191.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Feb 2011 20:00:33 +0100 Received: from hellerm2 by mail.cdrd.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Feb 2011 20:00:33 +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 Hi all, I'm trying to get the following to work: (org-add-agenda-custom-command '("X" tags "Task" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "Admin")) (org-agenda-overriding-header " Test")))) I want all entries that have the tag "TASK" and that have the category "Admin" shown in the agenda. I set the category in my org files like this: #+CATEGORY: Admin #+FILETAGS: ADMIN * Tasks [5/6] :TASK: ** TODO Drop off Stuff ** DONE F'up on other stuff I also tried using 'notregexp "ADMIN" to go after the FILETAG, but either way, the search yields no hits. I have the feeling that I'm misunderstanding something pretty badly and would appreciate any help :-) Thanks and Cheers Markus