From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CGuYIVEdQ2ICawAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 16:53:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8KQkHlEdQ2JPDwAAauVa8A (envelope-from ) for ; Tue, 29 Mar 2022 16:53:05 +0200 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 2A159EA4B for ; Tue, 29 Mar 2022 16:53:05 +0200 (CEST) Received: from localhost ([::1]:46226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZCiN-0001m0-5U for larch@yhetil.org; Tue, 29 Mar 2022 10:20:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZChI-0001li-NS for emacs-orgmode@gnu.org; Tue, 29 Mar 2022 10:19:48 -0400 Received: from [2607:f8b0:4864:20::e32] (port=42835 helo=mail-vs1-xe32.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZChH-0004XK-6I for emacs-orgmode@gnu.org; Tue, 29 Mar 2022 10:19:48 -0400 Received: by mail-vs1-xe32.google.com with SMTP id i186so19297443vsc.9 for ; Tue, 29 Mar 2022 07:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LqYWHTvgUVYNQU69R0iWmZyfz4D875BcPuKl8IfjwHU=; b=hdHA2sHMGiAwoFaakRj+pV5rWk4MO64YtHXb13B9paukO91l5w/jrFSr2nQ8ymW3DU JD5+shsdFHAHqLpsdQeRCm3F7RXt1+DQa9r5EeaLJnHnnzAx9AVioKA4jr5NT6mllI22 OPbxh/OfdQkQ2M1qJ6VfrJRbv8RGYZ0iJ5lQPy1ttDWEnyBWcmQ4g8nuYpmFo0sl6hlI FqEJR+67aO6+aDwOhiiT074dIuexEkpruvcLk6K8yR9pEG1TbD3C2dLi9Zx4zUddGPQa pq9yHM8tWvXoaegSV9Prwe12a5G4hPOsa4hwb2XTH+IBh4iXYSb0Eu8lhXUfFw5e2XaK 3+bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LqYWHTvgUVYNQU69R0iWmZyfz4D875BcPuKl8IfjwHU=; b=oqOeYG7Z49/qRmpYENJQTWr4Vd9XwBTbSlmW38J4adSUmIwrEXwC8GxqyfQUQor6J6 D/SVYsW8qDkeBp5ObJRjAJi8M/1WLa3LmoICfUscnN9D2xzo6nci/er9bntCx2VHBQ1I 3s64ah5MvrQ6eI8R8XlbH1XVVb5xLarbbXfnd9D7vfp+VM7vVS3YR8mHXym7sYKcayZ9 QnOofQUHeLa8nPImAAnmpAu+WpjWDboGmSZLpCtrV+pQEJC59fU2FuxPypxAi6MEUbCj d5j1qsETJnnwVtFWXxO41tnCBh3+GSsWQveMTQer0vCnXWFdcAaPKMRPZJtlK70R/Jo2 K8XQ== X-Gm-Message-State: AOAM533uO4FB8jzVu04Himf3q43Ggo80bM1DiMVrJN/ORUkwqrLnRypT KF9NH9X4hja/cGbd7XKyz4JZaHoRnLXx4W5W61g= X-Google-Smtp-Source: ABdhPJzhWRJ/CPQdDpBQ8nyTeBXyPoTxdm/oAunm19NV0ae3kdE6DtxJxFPCQehu82H/6AiZ94kkcf3QD+xYK67HjY0= X-Received: by 2002:a67:fc4b:0:b0:325:ab7b:fd9f with SMTP id p11-20020a67fc4b000000b00325ab7bfd9fmr7420059vsq.31.1648563582647; Tue, 29 Mar 2022 07:19:42 -0700 (PDT) MIME-Version: 1.0 References: <87wo66t8i7.fsf@gmail.com> <87y2qlgq33.fsf@nicolasgoaziou.fr> <87d07wkbkz.fsf@gmail.com> <87czihdiyy.fsf@localhost> <875yo8u5kj.fsf@nicolasgoaziou.fr> <87bkxzd5wc.fsf@localhost> <87wngkk4vc.fsf@nicolasgoaziou.fr> <87sfr8gk00.fsf@gmail.com> <87k0chyv2y.fsf@localhost> In-Reply-To: <87k0chyv2y.fsf@localhost> From: Matt Price Date: Tue, 29 Mar 2022 10:19:31 -0400 Message-ID: Subject: Re: [RFC] DOCT: Declarative Org Capture Templates (easier template syntax) To: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000bbc5e105db5c1ef1" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::e32 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=moptop99@gmail.com; helo=mail-vs1-xe32.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode , No Wayman , Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648565585; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LqYWHTvgUVYNQU69R0iWmZyfz4D875BcPuKl8IfjwHU=; b=bXRFqZh5x6tOUALLDj2WaT6agFHNopbr7G5jjQJ8kXAA4jRq4d9bcrP62qHR0Q33xF+cfx f6v9N2Us3TZXFKOMPnjxuKNFPyjRSmEq0a2/LT4LGxIQVHhZ3HmkWu3I2+rXBjYNvsuRtX 1AiQ4cq/7tDkBCKFwXUKI1emTWODb+y0B/JoajpDXS4yZ0QhWCglDuLicMeQMXvs9Z+eqL pEdryym0PY7+CmOLass6mZIv8RE6ZwitdBlw9kLJ1h/1FsGxSN8DW3o+/ahXtbHagfTeCD 6F86pB9eNyVqnkaroCI6jgpxa0tufE2A+3WSwo3ykMQemB3I1rwtjQq5XTllpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648565585; a=rsa-sha256; cv=none; b=syJPz05pvSh1ADOqY9iEl+nU0OvE3UBTZ0yhFYyTu+dATol3xKzoPwNxGV+bElTuj1HI0g YQgC5S6EBVuEQ6Wn0Tkn3IwE1PwcEU1I6TY3qmhHAiCyIs65OTJVP6OHFNIkigmgdK4ENp SXAjVrXDROdsaMXaIlF1fS3y5FketYqrJPDhru3FOasr7AMtANXpGs47jwlyqyzpH72wb2 OwsTehVd8Vy8miH5ypDnQpsMCu1tU3652gWqHW2U9eaFhoU+KC/OTyWA8MocyTcO66PtYQ bAzyGdei72U5UvIttDlncQLmjCAx4ny2wJomSpkbFy1a7XRYCNhV+HPoY6bAmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hdHA2sHM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hdHA2sHM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2A159EA4B X-Spam-Score: 6.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: fPPOABZn2Da6 --000000000000bbc5e105db5c1ef1 Content-Type: text/plain; charset="UTF-8" On Sat, Mar 26, 2022 at 4:31 AM Ihor Radchenko wrote: > No Wayman writes: > > > I'm open to bringing doct's features into Org mode, but I'd prefer > > it not to be spread out over another two years. > > Proper integration of doct into org-capture.el would indeed be ideal. I > am happy that you are ok with such option. > > Practically, we can do it step-by-step in separate patches: > 1. Introduce alist format for org-capture-templates. No new > functionality yet, just change the existing supported template > options to :keyword value pairs. Also, make sure that we keep > backwards compatibility. > 2. Extend the alist with new options, like ${keyword} expansion, hooks, > contexts, children, etc Maybe in a sequence of patches. > 3. Provide validation of capture templates. > > WDYT? > > Best, > Ihor > I'll just say that I would be an enthusiastic adopter of the new syntax (just one data point). I agree wholeheartedly that named properties in plists are much easier to remember and adjust than positional arguments, especially when there are lots of the latter. So, I hope this move sforward. --000000000000bbc5e105db5c1ef1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Mar 26, 2022 at 4:31 AM Ihor = Radchenko <yantar92@gmail.com&= gt; wrote:
No Wa= yman <iarchivedmywholelife@gmail.com> writes:

> I'm open to bringing doct's features into Org mode, but I'= d prefer
> it not to be spread out over another two years.

Proper integration of doct into org-capture.el would indeed be ideal. I
am happy that you are ok with such option.

Practically, we can do it step-by-step in separate patches:
1. Introduce alist format for org-capture-templates. No new
=C2=A0 =C2=A0functionality yet, just change the existing supported template=
=C2=A0 =C2=A0options to :keyword value pairs. Also, make sure that we keep<= br> =C2=A0 =C2=A0backwards compatibility.
2. Extend the alist with new options, like ${keyword} expansion, hooks,
=C2=A0 =C2=A0contexts, children, etc Maybe in a sequence of patches.
3. Provide validation of capture templates.

WDYT?

Best,
Ihor

I'll just say that I would be = an enthusiastic adopter of the new syntax (just one data point). I agree wh= oleheartedly that named properties in plists are much easier to remember an= d adjust than positional arguments, especially when there are lots of the l= atter. =C2=A0 So, I hope this move sforward.=C2=A0
--000000000000bbc5e105db5c1ef1--