From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8IZGLlYe+V4McwAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 22:48:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mM4PKlYe+V6tBQAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 22:48:54 +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 DC744940369 for ; Sun, 28 Jun 2020 22:48:53 +0000 (UTC) Received: from localhost ([::1]:34516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpg6W-0000b1-F0 for larch@yhetil.org; Sun, 28 Jun 2020 18:48:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpg64-0000ar-DJ for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:48:24 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:42313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpg60-0007tH-H8 for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:48:24 -0400 Received: by mail-lj1-x229.google.com with SMTP id h22so8828869lji.9 for ; Sun, 28 Jun 2020 15:48:20 -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=4EEawWFCZj68oRYRGSyXb/N+FlehLL8lLVAEwSex94A=; b=u9k9YR0mn5CIxy8T57UsrQcUBalWu82vZJ5yMusyBZOnZsVQwUSvd3FTb+mpniTz6Y cgYWRSbnCyUXnuzW07fRDFsEAvzj3ct+RW2agTGQdJXYXS3MPom5DBrqZsksQCko2UQP XHiMaH14X8A5sqE+P0iBas6ea8Jc+N3Nwnd1qOONh0IzDEE9EE6IA0sqXiAV/nz+GcaT LRRkOE8/xwuvsWaMr9VlCc8TcJov6ljln0C6L9ARSRKX3zjatLJib+bwbNTti1XwCvcS YKRDRINYLP3tLMiGhDd1OBR0ThY1DPTgFFmDtdJljMHmQyR4U6JOB7VLJ9i8nnVU8J/q OchQ== 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=4EEawWFCZj68oRYRGSyXb/N+FlehLL8lLVAEwSex94A=; b=Z5Wy+sULwTi7A+6kg1n+pZkf4HIi9rGc7wSdeUDC1zTwiX2D3lUAGosloUTNAs0EX9 lkUXZ8PDgR4ba3YO2wDkL7ek0fnTD57J9WVZ9uac50zXHxSiN7Z04GfhogEDssVvp2uv McdMcDIw4qgnCtZhmDlFfcRUNcziaPbokFJzPo4N6W0iLahjagp3hPv0ll4ITV0mSdtI Qm0TKH5K1qlto313nk6aDBsmAD4xCp4lIiPpyiwLWtvq64NYq1/oF6AzFWsKhk9AmQfF AsEC8ugJ8g8KcnxYwlKhVTQrqWWqFQMtv6uCYO/2F6mRQs/PmhVI4PlwptkCGAqhiQ6x wYHg== X-Gm-Message-State: AOAM531jxbHfwi/XvAgvsVY6MxRKfsY6n9tQ1En9Z2guo+5dBSSWZJXy C0WKU7U0skFBuu4HWR8fKoAfv441DZ/VDICVKQ== X-Google-Smtp-Source: ABdhPJw47L2tUXbmskP5y+IL5hv0UQGj/F96Mtt/QgeTyIOKwzXhK3J548Vl+LugkyFlS7ULuKuq9XtmPQXR7QxX9AU= X-Received: by 2002:a2e:844f:: with SMTP id u15mr6269147ljh.466.1593384498585; Sun, 28 Jun 2020 15:48:18 -0700 (PDT) MIME-Version: 1.0 References: <87366ec2tw.fsf@kyleam.com> In-Reply-To: From: Nathan Neff Date: Sun, 28 Jun 2020 17:48:07 -0500 Message-ID: Subject: Re: Using regular expressions in custom agenda views To: Kyle Meyer Content-Type: multipart/alternative; boundary="00000000000007646c05a92cbd0c" Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=nathan.neff@gmail.com; helo=mail-lj1-x229.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=u9k9YR0m; 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: S4ifncBwcwZa --00000000000007646c05a92cbd0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable More wonkiness: This custom view (no regexes) doesn't work, but manually entering projectA (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"))) 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 t= o >> 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 that >>>> > 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) checked >>>> 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 emac= s >>> -q >>> >>> I had some other issues w/regexes and Bastien fixed them in "maint": >>> >>> https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec28984= 161c05e43da5ef >>> >>> Is it relatively easy to try org-mode's "maint" version (e.g. just chec= k >>> out branch from >>> https://code.orgmode.org/bzg/org-mode ?) I'll try using the "maint" >>> version to see what's up. >>> >>> Thanks, >>> --Nate >>> >>> >> --00000000000007646c05a92cbd0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
More wonkiness:

=
This custom view (no regexes) doesn't work, but manually entering = projectA (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=
=C2=A0'(("1" tags-todo "projectA")))=



On Sun, Jun 28, 2020 at 5:39 PM Nathan Ne= ff <nathan.neff@gmail.com&g= t; wrote:
Still isn't working with org-mode 9.3.7 (o= rg-20200622) and
using emacs -q

I have t= his 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:projectB:
:PROPERTIES:
:Effort: =C2=A0 2:00
:END:

* 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:


<= /div>And this custom view returns nothing:
(setq org-agenda-custom-comma= nds
=C2=A0'(("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 <nathan.neff@gmail.com> = wrote:
GRRRR I tried "packa= ge update" and package=C2=A0mgr in Emacs kept telling me
that Org = 9.3.6 was 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 whatev= er that thing is to actually show the latest
versions of packages= .

On 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> wr= ote:
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
=
--00000000000007646c05a92cbd0c--