emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: torys.anderson@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: org-agenda-custom-commands with org-agenda-filter-by-regexp
Date: Wed, 19 Aug 2015 09:57:10 -0600	[thread overview]
Message-ID: <87io8b5l0p.fsf@linux.site> (raw)

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!

             reply	other threads:[~2015-08-19 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 15:57 Tory S. Anderson [this message]
2015-08-20 14:29 ` org-agenda-custom-commands with org-agenda-filter-by-regexp Matt Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87io8b5l0p.fsf@linux.site \
    --to=torys.anderson@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).