From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: property matching in org-agenda-custom-commands Date: Fri, 5 Apr 2019 21:26:53 -0400 Message-ID: References: <23719.47035.820485.461489@AGAME7.local> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004e9e5a0585d2800b" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCa6x-00022k-BW for emacs-orgmode@gnu.org; Fri, 05 Apr 2019 21:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCa6w-00011T-Dq for emacs-orgmode@gnu.org; Fri, 05 Apr 2019 21:27:11 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:36329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCa6t-0000vk-Rd for emacs-orgmode@gnu.org; Fri, 05 Apr 2019 21:27:10 -0400 Received: by mail-pf1-x42a.google.com with SMTP id z5so4200833pfn.3 for ; Fri, 05 Apr 2019 18:27:07 -0700 (PDT) In-Reply-To: <23719.47035.820485.461489@AGAME7.local> 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" To: Thomas Plass Cc: Org Mode --0000000000004e9e5a0585d2800b Content-Type: text/plain; charset="UTF-8" Ah, I was being pretty stupid. Thanks to both Thomas and Nick. Is it possible to specify "current buffer only" in the definition of a shortcut, but still produce an agenda, rather than a sparse tree? I find the agenda in some ways easier to navigate than the sparse tree. Also (side note) I'm having trouble using the boolean "|" in the pattern for the property value. I thought something like one of these would work, but I'm having some trouble with it: +GRADE={"0"|"Fail"} or maybe +GRADE={0|Fail} etc. Thansk as always, Matt On Fri, Apr 5, 2019 at 4:17 PM Thomas Plass wrote: > Matt, > > Matt Price wrote at 13:31 on April 5, 2019: > : > : ("F" "Failing Students in Current Buffer Only" tags-tree "+GRADE=\"0\"") > : > : However, this seems to choke, and the agenda is not generated. > > Works as advertised (docstring'ed?), I think. The 'tags-tree creates > a sparse tree, not an agenda. Plain 'tags does. If that's what > you're after. > > ("F" "Failing Students in Current Buffer Only" tags "+GRADE=\"0\"") > > Thomas > --0000000000004e9e5a0585d2800b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah, I was being pretty stupid.=C2=A0= Thanks to both Thomas and Nick.

Is it possib= le to specify "current buffer only" in the definition of a shortc= ut, but still produce an agenda, rather than a sparse tree? I find the agen= da in some ways easier to navigate than the sparse tree.=C2=A0

Also (side note) I'm having trouble using the boolean= "|" in the pattern for the property value.=C2=A0 I thought somet= hing like one of these would work, but I'm having some trouble with it:=

+GRADE=3D{"0"|"Fail"}
or maybe
+GRADE=3D{0|Fail}

=
etc.

Thansk as always,
M= att

On Fri, Apr 5, 2019 at 4:17 PM Thomas Plass <thunk2@arcor.de> wrote:
Matt,

Matt Price wrote at 13:31 on April 5, 2019:
:
: ("F" "Failing Students in Current Buffer Only" tags-t= ree "+GRADE=3D\"0\"")
:
: However, this seems to choke, and the agenda is not generated.

Works as advertised (docstring'ed?), I think.=C2=A0 The 'tags-tree = creates
a sparse tree, not an agenda.=C2=A0 Plain 'tags does.=C2=A0 If that'= ;s what
you're after.

("F" "Failing Students in Current Buffer Only" tags &qu= ot;+GRADE=3D\"0\"")

Thomas
--0000000000004e9e5a0585d2800b--