From: thunk2@arcor.de (Thomas Plass)
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Thomas Plass <thunk2@arcor.de>
Subject: Re: property matching in org-agenda-custom-commands
Date: Sat, 6 Apr 2019 11:06:42 +0200 [thread overview]
Message-ID: <23720.27682.168492.655996@AGAME7.local> (raw)
In-Reply-To: Your message of Friday, April 5 2019 21:26:53 (ID: <CAN_Dec9fwrpMsh4Gi0kKOc3hXhVUBRkVvHMPgTCdHsjJ5VgcXg@mail.gmail.com>).
Matt,
Matt Price wrote at 21:26 on April 5, 2019:
: Is it possible to specify "current buffer only" in the definition of a shortcut, but still
: produce an agenda, rather than a sparse tree?
Agenda matching will always use 'org-agend-files, sparse tree matching
doesn't. So, you'd need to force "current buffer" (really: current
file) by fiddling und unfiddling 'org-agend-files. Kludgy.
: +GRADE={"0"|"Fail"}
The thing is that the tags matcher, used here to match PROPERTYs,
translates the "=" in the string above to Lisp `string='. You're on
the right track to use "{|}" but then it the contents of the {}
has to be a properly escaped regexp.
This works for me:
("F" "Failing Students in Current Buffer Only" tags "+GRADE={0\\|Fail}")
Overkill:
("F" "Failing Students in Current Buffer Only" tags "+GRADE={^\\(0\\|Fail\\)$}")
Thomas
prev parent reply other threads:[~2019-04-06 9:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-05 17:31 property matching in org-agenda-custom-commands Matt Price
2019-04-05 18:39 ` Nick Dokos
2019-04-05 20:16 ` Thomas Plass
2019-04-06 1:26 ` Matt Price
2019-04-06 9:06 ` Thomas Plass [this message]
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=23720.27682.168492.655996@AGAME7.local \
--to=thunk2@arcor.de \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/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).