From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qH7xGeAf+V7EOgAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 22:55:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iPHUFeAf+V5nQgAAB5/wlQ (envelope-from ) for ; Sun, 28 Jun 2020 22:55:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E5004940369 for ; Sun, 28 Jun 2020 22:55:24 +0000 (UTC) Received: from localhost ([::1]:36702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpgCp-0001uz-RO for larch@yhetil.org; Sun, 28 Jun 2020 18:55:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpgC2-0001un-D7 for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:54:34 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:40561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpgBz-000063-6A for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:54:34 -0400 Received: by mail-lf1-x12e.google.com with SMTP id o4so8054052lfi.7 for ; Sun, 28 Jun 2020 15:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xqkpp2Z1JJfMlLWLn7Gw6gLQf2QQupCZS+4qtTqnAjE=; b=iFz5XAInIJCgHc0cHGU9zumW42uwojlnt+jVWwhMviRsxOKfih6b9wMVA6cIxVXkqJ kvLNfom9xq1J58O4mXdTSQmjmTVJ3jYyujUSSeozjzLXgulBDDAYUGr+x+WjptXaT2qQ 3NCpaClDjQyA2sbQ/vp6LS68ua9splszxXVIlMi7OvcExF75XhMM34o//Bh5vs0+1V0O cGBWlcY/v6ssOte1iqzNCtMvsEh4C0dWrm8mBFJ9CNsbPqTS6cS6fbBfp1LoaTsJnFXI xLoPKlr5AmX8ijcP6JE4bsDdqzUE77wn1JvslG1yRpNl+7Ulu4A/rnxgrt2oeUM/quBi A4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xqkpp2Z1JJfMlLWLn7Gw6gLQf2QQupCZS+4qtTqnAjE=; b=O+xTGmZK/lB/rN31FHE3D1sdEOL2ryZ/+9V2mtbqKz1VYOwrZw5TfpJmz804abKJvE pY+II/pzGqw//407YIV4eGAqEHVIrSoHVR4yVhe+IOl+ZWsxXRK27l+lHZdrIh/M/gMX fqBq8JtHt0fInKrJiHQ3ANeUtoWRPOwWlB8AGT0z9uOioAkd2D4ZyrwlkDkCLTsj0CL0 7A+M91+Auz20J6BFVaaPm/311VYJmylqhW/xARuWNTRDeOq+KggIY5jasEOSA46OvQlA l8uRo60Es939nxh7emecVK83BeWfDJsNNnuicqMNNT+dc8GqGF8M9ZTYTHJgcn2vdbYz T+1Q== X-Gm-Message-State: AOAM533SrVSIaUMKkNcEXE6Z2i106iYsZ64ns2CW3yxH9cH1zW1+FCo9 tneN8n+CRUP/zChtrStVjMMSOdGTMNB/ADsQAQ== X-Google-Smtp-Source: ABdhPJwfekqLE3H2wdT8gQxyiSv1+TRmZUdwgnZ0u4G2Y0sApH/MkSnjuEAd+iXIpCcPYPmVFzmkU4m2M+Cg/8H1pw0= X-Received: by 2002:a19:90:: with SMTP id 138mr7722117lfa.100.1593384867356; Sun, 28 Jun 2020 15:54:27 -0700 (PDT) MIME-Version: 1.0 References: <87366ec2tw.fsf@kyleam.com> In-Reply-To: From: Nathan Neff Date: Sun, 28 Jun 2020 17:54:16 -0500 Message-ID: Subject: Re: Using regular expressions in custom agenda views To: Kyle Meyer Content-Type: multipart/alternative; boundary="00000000000002622705a92cd317" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=nathan.neff@gmail.com; helo=mail-lf1-x12e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=iFz5XAIn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: q3nnzaCv5iPe --00000000000002622705a92cd317 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jun 28, 2020 at 5:48 PM Nathan Neff wrote: > More wonkiness: > > This custom view (no regexes) doesn't work, but manually entering project= A > (no quotes) in a tags-todo search > *does* work - so maybe my problem isn't regexes, but something else with > my org-agenda-custom-commands . . . . > > (setq org-agenda-custom-commands > '(("1" tags-todo "projectA"))) > > Okay - calm down - it was the fact that I was using the "tags" search to manually search and my custom view was using tags-todo. Regexes are working now - sorry for the spam! --Nate > > > On Sun, Jun 28, 2020 at 5:39 PM Nathan Neff wrote= : > >> Still isn't working with org-mode 9.3.7 (org-20200622) and >> using emacs -q >> >> I have this file: >> >> * One >> :project:a:work:boss:projectA: >> :PROPERTIES: >> :Effort: 1:00 >> :END: >> * Two >> :projectB: >> :PROPERTIES: >> :Effort: 2:00 >> :END: >> >> * Bar >> :pt:project:b: >> >> >> And this custom view returns nothing: >> (setq org-agenda-custom-commands >> '(("1" tags-todo "{projectA}"))) >> >> If I do a tags-todo search manually and use this syntax: {projectA} >> it works. >> >> Ideas? >> >> On Sun, Jun 28, 2020 at 5:28 PM Nathan Neff >> wrote: >> >>> GRRRR I tried "package update" and package mgr in Emacs kept telling me >>> that Org 9.3.6 was the latest. Now I look @ orgmode.org and see 9.3.7 >>> - I'll try that first >>> after I figure out how to get that "package" or whatever that thing is >>> to actually show the latest >>> versions of packages. >>> >>> On Sun, Jun 28, 2020 at 5:27 PM Nathan Neff >>> wrote: >>> >>>> >>>> >>>> On Sun, Jun 28, 2020 at 4:12 PM Kyle Meyer wrote: >>>> >>>>> Nathan Neff writes: >>>>> >>>>> > I'm having a difficult time using regular expressions in custom >>>>> > "tags-todo" agenda views. >>>>> > >>>>> > Is it possible to create custom agenda views using regular >>>>> expressions, >>>>> > and if so, do I need to escape certain characters? >>>>> > >>>>> > I can't get a simple regex like this to work, so I'm suspecting tha= t >>>>> > I'm doing something wrong or, it's simply not possible to create >>>>> custom >>>>> > agenda views that use regular expressions to search for tags. >>>>> > >>>>> > For example, this expression doesn't even find headings with >>>>> :projectA: >>>>> > as a tag >>>>> > >>>>> > (setq org-agenda-custom-commands >>>>> > '( >>>>> > ("1" tags-todo "{projectA}"))) >>>>> >>>>> My understanding is that the above should work. I tried your >>>>> org-agenda-custom-commands value with this agenda file: >>>>> >>>>> * TODO a >>>>> :projectA: >>>>> * TODO b >>>>> :projectB: >>>>> * TODO c >>>>> :project: >>>>> >>>>> With an otherwise vanilla configuration and master (0c1740c91) checke= d >>>>> out, I see >>>>> >>>>> Headlines with TAGS match: {projectA} >>>>> Press =E2=80=98C-u r=E2=80=99 to search again >>>>> scratch: TODO a >>>>> :projectA: >>>>> >>>>> I see the same thing on maint (3ed035ce3). >>>>> >>>> >>>> Thanks - I'm using Org 9.3.6 and I'm getting no matches when using >>>> emacs -q >>>> >>>> I had some other issues w/regexes and Bastien fixed them in "maint": >>>> >>>> https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec2898= 4161c05e43da5ef >>>> >>>> Is it relatively easy to try org-mode's "maint" version (e.g. just >>>> check out branch from >>>> https://code.orgmode.org/bzg/org-mode ?) I'll try using the "maint" >>>> version to see what's up. >>>> >>>> Thanks, >>>> --Nate >>>> >>>> >>> --00000000000002622705a92cd317 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jun 28, 2020 at 5:48 PM Natha= n Neff <nathan.neff@gmail.com> wrote:





Still isn't working with org-mode 9.3.7 (org-20200622= ) and
using emacs -q

I have this file:

* One =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:project:a:work:boss:projectA:
= :PROPERTIES:
:Effort: =C2=A0 1:00
:END:
* Two= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:proje= ctB:
:PROPERTIES:
:Effort: =C2=A0 2:00
:END:<= /div>

* Bar =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0:pt:project:b:


And th= is custom view returns nothing:
(setq org-agenda-custom-commands
=C2= =A0'(("1" tags-todo "{projectA}")))

If I do a tags-todo search manually and use this sy= ntax: {projectA}
it works.

Ideas?
<= /div>

On Sun, Jun 28, 2020 at 5:28 PM Nathan Neff <nathan.neff@gmail.com> wrote:
GRRRR I tried "package updat= e" and package=C2=A0mgr in Emacs kept telling me
that Org 9.3.6 wa= s the latest.=C2=A0 Now I look=C2=A0@ orgmode.org and see 9.3.7 - I'll try that first
after I figure out how to get that "package" or whatever that = thing is to actually show the latest
versions of packages.
<= /div>
O= n Sun, Jun 28, 2020 at 5:27 PM Nathan Neff <nathan.neff@gmail.com> wrote:


On Sun, Jun 28, 2020 at 4:12 PM Kyle Meyer <kyle@kyleam.com> wrote:
=
Nathan Neff writes:

> I'm having a difficult time using regular expressions in custom > "tags-todo" agenda views.
>
> Is it possible to create custom agenda views using regular expressions= ,
> and if so, do I need to escape certain characters?
>
> I can't get a simple regex like this to work, so I'm suspectin= g that
> I'm doing something wrong or, it's simply not possible to crea= te custom
> agenda views that use regular expressions to search for tags.
>
> For example, this expression doesn't even find headings with :proj= ectA:
> as a tag
>
>=C2=A0 =C2=A0(setq org-agenda-custom-commands
>=C2=A0 =C2=A0'(
>=C2=A0 =C2=A0 =C2=A0 ("1" tags-todo "{projectA}")))=

My understanding is that the above should work.=C2=A0 I tried your
org-agenda-custom-commands value with this agenda file:

=C2=A0 =C2=A0 * TODO a=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:projectA:
=C2=A0 =C2=A0 * TODO b=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:projectB:
=C2=A0 =C2=A0 * TODO c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:project:

With an otherwise vanilla configuration and master (0c1740c91) checked
out, I see

=C2=A0 =C2=A0 Headlines with TAGS match: {projectA}
=C2=A0 =C2=A0 Press =E2=80=98C-u r=E2=80=99 to search again
=C2=A0 =C2=A0 =C2=A0 scratch:=C2=A0 =C2=A0 TODO a=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :projectA:

I see the same thing on maint (3ed035ce3).

<= div>Thanks - I'm using Org 9.3.6 and I'm getting no matches when us= ing emacs -q

I had some other issues w/regexes and= Bastien fixed them in "maint":

Is it relatively = easy to try org-mode's=C2=A0"maint" version (e.g. just check = out branch from
https://code.orgmode.org/bzg/org-mode ?) =C2=A0I'= ;ll try using the "maint" version to see what's up.

Thanks,
--Nate
=C2=A0
=
--00000000000002622705a92cd317--