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 4EW2I3cZ+V5odQAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 22:28:07 +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 2IqgH3cZ+V4idQAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 22:28:07 +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 1A58494005D for ; Sun, 28 Jun 2020 22:28:07 +0000 (UTC) Received: from localhost ([::1]:49936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpfmO-0002OI-Nr for larch@yhetil.org; Sun, 28 Jun 2020 18:28:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpfm2-0002OB-7Q for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:27:42 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:39963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpfm0-0004au-DS for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 18:27:41 -0400 Received: by mail-lj1-x22b.google.com with SMTP id n23so15991674ljh.7 for ; Sun, 28 Jun 2020 15:27:40 -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=UDDJKipB93kGWPU/FlG3FRSLElDHPmNvlcz+ZcsEZbA=; b=e1YhtNIFAZUFPiF03spOY7h9JWOJyzXetg3yUMP3CI5VaZICKyZqQzCd1utU6fxpr9 zOXF36wvaVKLFqJtZa2etxZCR0xUh4bewwlG273tRRmw6qtCWAC6EMw49doSoNi2BCmI r82gPLhHIDM+C1HiYT3bhwKZLoUTCDbqzZ47yJW+qyLuUNyj7+3f2Cai8DTjykUElvZY 2O2Mq9eniVpEm2XZxpW5O03ABl1mZyGkSK73xMtnq9IpkWLZTbo9ZtfNp51Jp4vsnW3J Pz+p0kk19ZyMyxKqDBQ6gpmcCollWsboh7yjpuRwYjN+mCCdX1x1gQG7XWcBc7olAghE mpaw== 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=UDDJKipB93kGWPU/FlG3FRSLElDHPmNvlcz+ZcsEZbA=; b=XGKoIPnJgDJVPtbJy3pbbmUx25dplz/SfPvJn9H/tAX1GxZXCPrMvATbl40+JoxhcF YRlH8+OVuaRNiI/Ls7Mkj4CQthfjjQ5KI9Z0ANPZRO1pzT4pC8LWEVBrfT6XjyscUPlm wuUrzIXEZeEpgeDLOHZqPPCWyvmzAn8E9yQCs+hocI7E+XVmspSGPE3/T2kTp81Z2jTl 7w5bqwAIgLIGEs+G6jqBriFXWa/zhKJ9GR1znxBgh2G0sId7NLiGyOCHgmqxTrmusbtx 9sEAfRulWnc2MLjzWKV1y0kTGG2HBvPl2gy6d2lxqxJU45Ev6KHMlVtp8Wgl9QOnAmCq 8UaQ== X-Gm-Message-State: AOAM531wu+lYpleVwP2N1sgTr/VX8lpDoNOyRclotVXjJvhyg6sWrtws +Tlr/Rh9PZyiLXTZD7847MuWnTEQx8IZTVymWAXzZFM= X-Google-Smtp-Source: ABdhPJzIQGLarDEkKK7hA50FBe2Y+PDVf/g0ehKY2UbcYlWj+mDMUm8hKX7xgyKv9bYCn+YEY2tLHXPjRzCFw2+DnmU= X-Received: by 2002:a2e:844f:: with SMTP id u15mr6247951ljh.466.1593383258714; Sun, 28 Jun 2020 15:27:38 -0700 (PDT) MIME-Version: 1.0 References: <87366ec2tw.fsf@kyleam.com> In-Reply-To: <87366ec2tw.fsf@kyleam.com> From: Nathan Neff Date: Sun, 28 Jun 2020 17:27:28 -0500 Message-ID: Subject: Re: Using regular expressions in custom agenda views To: Kyle Meyer Content-Type: multipart/alternative; boundary="00000000000020764005a92c73e5" Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=nathan.neff@gmail.com; helo=mail-lj1-x22b.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=e1YhtNIF; 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: JCF1B3oHyFxx --00000000000020764005a92c73e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 emacs -q I had some other issues w/regexes and Bastien fixed them in "maint": https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec28984161c= 05e43da5ef 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 --00000000000020764005a92c73e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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

> 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-mo= de's=C2=A0"maint" version (e.g. just check out branch from
https://code.orgm= ode.org/bzg/org-mode ?) =C2=A0I'll try using the "maint" = version to see what's up.

Thanks,
--= Nate
=C2=A0
--00000000000020764005a92c73e5--