emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: johnt <jtarbotton@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Using org-agenda-filter-preset with or'd tags
Date: Mon, 20 Dec 2010 14:12:39 +0000 (UTC)	[thread overview]
Message-ID: <loom.20101220T145637-70@post.gmane.org> (raw)

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

             reply	other threads:[~2010-12-20 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 14:12 johnt [this message]
2011-01-09 13:58 ` Using org-agenda-filter-preset with or'd tags David Maus
2011-01-10 18:01   ` John Tarbotton
2011-01-11 13:20   ` Matt Lundin
2011-01-11 13:22     ` Matt Lundin
2011-01-11 23:01       ` John Tarbotton
2011-01-11 14:01     ` Carsten Dominik

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=loom.20101220T145637-70@post.gmane.org \
    --to=jtarbotton@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).