From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2EJUBG7PPmIOKgEAgWs5BA (envelope-from ) for ; Sat, 26 Mar 2022 09:31:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sH/TAW7PPmLTKwAA9RJhRA (envelope-from ) for ; Sat, 26 Mar 2022 09:31:42 +0100 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 B58E717FDC for ; Sat, 26 Mar 2022 09:31:41 +0100 (CET) Received: from localhost ([::1]:32794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY1pk-000871-7B for larch@yhetil.org; Sat, 26 Mar 2022 04:31:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY1oJ-00086l-1H for emacs-orgmode@gnu.org; Sat, 26 Mar 2022 04:30:11 -0400 Received: from [2607:f8b0:4864:20::336] (port=45040 helo=mail-ot1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY1oG-0002Oe-PH for emacs-orgmode@gnu.org; Sat, 26 Mar 2022 04:30:10 -0400 Received: by mail-ot1-x336.google.com with SMTP id w17-20020a056830111100b005b22c584b93so7119976otq.11 for ; Sat, 26 Mar 2022 01:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=XV2yJoCQQHyntCjabdEizYsOUOtXtOB2VKyrByfHbHI=; b=OdoT8Y2f7nm6JTJ7AGGaiyvx/c0gcFhAeCENg8frLQKwWIQQjmA6NOqEQaPjCOnXX6 fo/NOkxw0E84eAiJGCsEEyHKyiilZ9l/UJysEerQFxha+XTTShqA3dWZtVyLvv7kjn1F g8lChzOp/TAJtrGCxxwtCmZYztdCCfFqWncMIRCFhiYkCHp19r6yU2oHfRWUmhOq56C9 aAnL86DYdgPLlb18nN42kR1Z3zn2dTkOIh36VJuY2rQFevIQbeWnRdZCTwo5UdPgEqM7 fcRnG7pxnxXJxAgelv0WkU/MU8LcbV0qiBFsGet9d15KFr0ECvrHIwCXjNJ2uAYD0DvB teNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=XV2yJoCQQHyntCjabdEizYsOUOtXtOB2VKyrByfHbHI=; b=eC8EqVsS7mo23ZlRT9kF+m91aF7fTMMvkMBMVQx7w+2F77W7d7xO9YGZwqQYcmflMu qpEBJkbGl4tCBVC1ZxrD0MKULrSgxBwe92N10Qjxtru+rSGWDBIUdlRnWytktS3aN2uS mZJY2CgRLe3eyf3tefQbQnfLYXuKduhxuY210Wc1Hqgry1m1gOf+ttoa6+z0cPmMs6z2 qpf+Kd9tOGzZ9HkJc2xqhVonj+ZHefLY+B4qcogqoNvrhXgTHbLeee1d54ZaAjpPPSqy 9M/zluzj1lMziBf4AQhAgDc5a9uZnDFYO1YL+LDbZGui40LeSQUtlnQoHLN1d7bCGgOj z4lA== X-Gm-Message-State: AOAM5307eb4RrlT9eMZsLJKxauUCCrLaTjNxjF6FRcn/rJbMu2t3Gqov RzusB3Cc9K33KUEkt+HEuBM= X-Google-Smtp-Source: ABdhPJyYTFUfSGnM6sWvpioRDwjFvoN8JTjQt6zG5pXw+JU92mL82eEZIPSN4nv14hbjMq0HHBDifA== X-Received: by 2002:a9d:6358:0:b0:5b2:48e2:7aed with SMTP id y24-20020a9d6358000000b005b248e27aedmr6120105otk.70.1648283407579; Sat, 26 Mar 2022 01:30:07 -0700 (PDT) Received: from localhost ([23.227.186.130]) by smtp.gmail.com with ESMTPSA id w22-20020acaad16000000b002d9c98e551bsm4037922oie.36.2022.03.26.01.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 01:30:06 -0700 (PDT) From: Ihor Radchenko To: No Wayman Subject: Re: [RFC] DOCT: Declarative Org Capture Templates (easier template syntax) In-Reply-To: <87sfr8gk00.fsf@gmail.com> 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> Date: Sat, 26 Mar 2022 16:30:29 +0800 Message-ID: <87k0chyv2y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::336 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=yantar92@gmail.com; helo=mail-ot1-x336.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, 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: emacs-orgmode@gnu.org, 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=1648283501; 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=XV2yJoCQQHyntCjabdEizYsOUOtXtOB2VKyrByfHbHI=; b=FMkioLnlWDAryFIYT5uqRXqbJwfTzVJoJp9lkMXGVckTyK8Rrg/hSNyUdlMEh2tcNEdoT1 X6Fkqxwpgy0lIZ/NAaYMlOOz/ybT0AjDrcI07dx4RRmzSJFAwBn+zP/WE7jtM50kpug+On xxsgjjTnE8EM2YmZ6d86cAQgBkwZ4Nfp6dvVH4HO0S4z/oDJXTiYyN6baKnT1c7U9EdhzE SW9FRfRSxVfcGew2UMwFG8bhx3szeuRm/vr3qUiXM/eoeDvp5mmp6g23R6+BtzRT/4sdrY vf0m6U04lGibCSs6zMwwD08q9/zkPXlTqdRET2NDxxKMYfu8LiiqP7H9zfOiqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648283501; a=rsa-sha256; cv=none; b=YWDoIwjO50ZiMiCYTg56WRpqgS8nSyHaq0RzdVL83d3zaGVj4d6d8GlIFt8fcgGw+aFEVa FhO5VPKlQ6/IcK9ZULDNBu/wEiIuER1mvxLy34i7LmyXwmHkRiYya8VFHPoqnR4czAo3ZG 4g6BBFQttkCcwDDb6W1lDQPbP1UVa25GgrdlmToiRgg24Ou4js0YGk6CEWxIzXY67itlaL wwbVcC4SWpJaDpvRr033iLkBq3X65ErOn6puTwFrWppM1seQ3KBcbD70IlIDOVwX9EjI06 B6oWt3k6G3kcBcETj7pMqpCXGcq0fPBBshgQP22xg83k3XWeRgp1PxGamUyI9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OdoT8Y2f; 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.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OdoT8Y2f; 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: B58E717FDC X-Spam-Score: 6.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: vhFbPcHq7Kz6 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