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 EMGuOc0Z+V6XdgAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 22:29:33 +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 AMCWNc0Z+V72cwAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 22:29:33 +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 6AA6094005D for ; Sun, 28 Jun 2020 22:29:33 +0000 (UTC) Received: from localhost ([::1]:52556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpfno-0003Ue-D5 for larch@yhetil.org; Sun, 28 Jun 2020 18:29:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpfnP-0003UV-8w for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:29:07 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:34360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpfnN-0004ox-8T for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:29:07 -0400 Received: by mail-lj1-x229.google.com with SMTP id q7so2737753ljm.1 for ; Sun, 28 Jun 2020 15:29:04 -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=c/JScWX90faNOovrsOmhb1Ce9zzFs1I5jYwNK1GuUAc=; b=WRWKahrqL4J2XyWM32NoRoyKj0VgnfT8BNJwcVG9FLny7BQzCnJfH+w8D6DlwTnewC XWecpr9XbgW6TbYviu1UW6vppLajlJe+CKIuzJpGNvpPVjjiZVopgaT8HyFmRg1yp9xV mFsC7ctk41+Qwij9kgFda34MjTtuyVEvBtZvXLZkdfJJHa8Z/UE83O7vwJRkGFUG9xko 6x+pvVcOnZQl49xzZiT78LoqqAcmbW6cyoCKngsgY1XlqerZOpoSJJ7WegGgtetFztvq dO05KJj/mbt7RRYUrEJpbTrt4bBrYa1ZkBAZ5eBUDkHOF6ngP/8FzPZ4UxJ/ORgZoOk4 jONw== 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=c/JScWX90faNOovrsOmhb1Ce9zzFs1I5jYwNK1GuUAc=; b=uD1njEgXAMHarJ+0gFM+zqEbZsJsQdeAU9APGwDognnJQIOj9ZZIrdGrvTe1nMrL05 k3eI7dBCIcBTrwrVcXoFUxyTlrOgRp5EpaIcIfOB/E5N2cSAJgExBtMHbUvmXw34Pa96 mYK5ShYqJx8xUNkzlqPGl5k7l/d4/bVQJs7TarPjxJw0CZVUdx+NTUDUkN74kW6d+GST dmKvlZUiJvWbIdUB2hzr3zDkqVxdQ0CYENiIzAkiQfvMRDAll4JPaJpJQ2x7kR9ys/em aeju1Dj6RzxYCduOTr5Gak2CaGJSu1wJK3cKafYaWCQWh83vrMb/YGAI6u05XSFXMvOs Vysw== X-Gm-Message-State: AOAM532zFtGnQkhaOA734+BdFUMAv5Nl1EOHGM/ECrTEWTteZjIFgBhM xrd/G6yvSd9MNQYC4O0EYyHfZsOXgiqBnX+txw== X-Google-Smtp-Source: ABdhPJzt2KvNBv0vF6XEyxAf099cV0lX+x3g9gdw2tgCUoN5Psls5VHPxlbMOJOEWo6yLlIQxllXEYDrOL2SgBgI5xQ= X-Received: by 2002:a2e:b60e:: with SMTP id r14mr6911122ljn.84.1593383343379; Sun, 28 Jun 2020 15:29:03 -0700 (PDT) MIME-Version: 1.0 References: <87366ec2tw.fsf@kyleam.com> In-Reply-To: From: Nathan Neff Date: Sun, 28 Jun 2020 17:28:52 -0500 Message-ID: Subject: Re: Using regular expressions in custom agenda views To: Kyle Meyer Content-Type: multipart/alternative; boundary="0000000000002c5a0a05a92c78d4" 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=WRWKahrq; 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: KXGQnSjnkdw3 --0000000000002c5a0a05a92c78d4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 that >> > I'm doing something wrong or, it's simply not possible to create custo= m >> > 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 emacs = -q > > I had some other issues w/regexes and Bastien fixed them in "maint": > > https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec2898416= 1c05e43da5ef > > 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 > > --0000000000002c5a0a05a92c78d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
GRRRR I tried "package update" and package=C2=A0= mgr 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 whatever that thing is to actually show the latest
<= div>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 &l= t;kyle@kyleam.com&= gt; 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
=
--0000000000002c5a0a05a92c78d4--