From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: org-agenda-custom-commands with org-agenda-filter-by-regexp Date: Wed, 19 Aug 2015 09:57:10 -0600 Message-ID: <87io8b5l0p.fsf@linux.site> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS5jg-0002OL-RW for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 11:57:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS5jb-0002X7-Fi for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 11:57:08 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:33567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS5jb-0002VZ-8e for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 11:57:03 -0400 Received: by pabyb7 with SMTP id yb7so5962187pab.0 for ; Wed, 19 Aug 2015 08:57:01 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode list I've previously had success with using `org-agenda-tag-filter-preset` in `org-agenda-custom-commands` but I wanted to include OR logic on two different tags, which seemed beyond th tag-filter (which seems to use AND logic). In my agenda view I can use `=` to use a conditional on two tags, but I can't seem to duplicate that behavior in a custom command. With no errors it simply doesn't seem to work, and googling around has proved fruitless for giving examples; I've tried a number of different syntax without effect. --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("w"."Work") ("wd" "Work Day" ((agenda "" ((org-agenda-span 1) (org-agenda-start-on-weekday nil) (org-agenda-filter-by-regexp '(":\\(ODH\)\\|\\(AGENDA\\):")))))))) --8<---------------cut here---------------end--------------->8--- What's the proper way to get a working regexp filter in my custom-command? Thanks!