From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oOauH941b2ItgAAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 03:37:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OLvFHt41b2IzMwAAG6o9tA (envelope-from ) for ; Mon, 02 May 2022 03:37:34 +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 21E333B3BC for ; Mon, 2 May 2022 03:37:34 +0200 (CEST) Received: from localhost ([::1]:54266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlL0G-0004by-Rx for larch@yhetil.org; Sun, 01 May 2022 21:37:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlKzm-0004bm-00 for emacs-orgmode@gnu.org; Sun, 01 May 2022 21:37:02 -0400 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]:42527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlKzk-0004ic-IB for emacs-orgmode@gnu.org; Sun, 01 May 2022 21:37:01 -0400 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-2ef5380669cso134287197b3.9 for ; Sun, 01 May 2022 18:37:00 -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=Y1BRq7pVfePdvrM7qpCfDWmFZZclr7ze3Rzu15AQ59k=; b=XGUHpdQtmp3qNv6/gBkNapNTsatey9vwsp95xMqTKAJ7GeVTKFTFNjMIwIF6MFmsyB UL9OuEUuNIiCm07At27DBmvYzbS3K3H8VqvmICm8ZHXmVOpdymls08F6l+GHn/TTJjcq 9IYINKRUEzFa5HCGSCPd7yEaedxio0pXBooRuDDzde8rWX43tO4MZpt1OiETEdfL3sB4 EczKon/BB8dVMeORYiDk69TYD7LD9w6uBVjFc9d7ZBX4ygFdBSpE5hHDVNDtMmQcoaA1 DIMgUolnOS0l4EkByFSywrjgymEMc8xYqzbLLrvI6Co8WbXGDwaKh4KjklVvV8ZkvdDB QndA== 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=Y1BRq7pVfePdvrM7qpCfDWmFZZclr7ze3Rzu15AQ59k=; b=xWbstUtVdHDyjT3ge4Ueg8A5iXeNKG9mFexsZ2JqNGEJpLdtTY1pm6N9YOkS+SbmbX zRqeUrHh/gksXN8kStOeUo6otKH5YZ2y3/vzm/KEv4U7ioTnSdRiR6l9eM9d+xHfSBXi B7D71kYPvZlamQ6XXEznigsmE1LKkIKKNqXLI1LETchG1E2KB7PBqjYertgmIDY17V1I lsz1kGrTRizTtge7nxOCUv8vDEE9tbfhIDgTQPd5gsdGYYlJRNKj8XEohCIzzKb58fLO XqyeXutA6k/k4zXAypBIKe8rEcN0WJrFuo0vdumL7hqJLGH+YfjqfMktcAIgTAvHZv6+ g1BQ== X-Gm-Message-State: AOAM533BZuJkoARey3sxzdc7vQCu3A3YuZmxVIyUQezBeZG0H1Jo3+yi U2LYtTQkrhq6aSEYC9kiPEV5AcEqM3O/1no5u9c= X-Google-Smtp-Source: ABdhPJy0iV4MF9CWbx2IDHJ9CH9h3ZGsNE8qKB665a8804pYtJPuQjMh1vu9fbQjM28ciS4Q1/fCTawz66cX5/y8mhg= X-Received: by 2002:a81:8507:0:b0:2eb:9715:78d3 with SMTP id v7-20020a818507000000b002eb971578d3mr9771763ywf.304.1651455419271; Sun, 01 May 2022 18:36:59 -0700 (PDT) MIME-Version: 1.0 References: <87mtg0vldb.fsf@localhost> In-Reply-To: <87mtg0vldb.fsf@localhost> From: Skip Collins Date: Sun, 1 May 2022 21:36:48 -0400 Message-ID: Subject: Re: [PATCH] Re: [BUG] folding error during capture To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::112d; envelope-from=skip.collins@gmail.com; helo=mail-yw1-x112d.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-org list 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=1651455454; 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=Y1BRq7pVfePdvrM7qpCfDWmFZZclr7ze3Rzu15AQ59k=; b=CbVuM5ugRv+LszVaiEUOknRkwYkz+UUJn0goxe5mUVXAhAEOue9JTq+XukxLi9q6sBbfsl EpdK3SMyczB5Qid+FgCzIyxuNSWRyHZ3KgSSrzlwp0iuXD+y9ifCiqT9RmUcEfDhEykJyz gJuTm1pHe2ztHEvPLR3F9BgjQ4MouLzwvVaOu/Ld6X3ZNOfnk29jBhfjBH2s9fBagOXAhN zShQMBjO6MNj6zzuHVFGYBpTd2TzejTxq3NtBuJPud0e3rc9QxdMdRMeTCJHb443LM5sYU SXlRIEpveX6iytUrNL+VGVEvvAPe0nRhg6VQ3FRDF8YAtSI1aQRn84F2knnfYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651455454; a=rsa-sha256; cv=none; b=pXUQnMvj8bpTvaEaYEW7B7pgqdRJoGNAQ4vEj41MuhnmhjPZ99rdo4q54T36t+QHjgPcWU ZNc0tlVUAZVJrTOkYQGq0FbNg2d/vV/jqlqhLWPk3WKRqFbD55zHo0MmqpmptDKVjLOHX4 MSW03u/mSnb7f94N9qlFyiHFi84MstGk6ZRMo8M9iq5/Of0bl8BPPx0X5luwRFlFF2F4E+ hGhH5xewZNsW4PQOCm3ufMwob1oNjCHYIJ5BYve1c2Tq3DjGwrRVVwGNJqYrqcmwli7JTS NkGFvJlSnbYqK8IAAFsx6X6mkZI2PYeT5g7y/o7ERf6pwcioj70bnfhKEl7nRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XGUHpdQt; dmarc=pass (policy=none) header.from=gmail.com; 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: -7.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XGUHpdQt; dmarc=pass (policy=none) header.from=gmail.com; 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: 21E333B3BC X-Spam-Score: -7.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: yNqR1R5AruxY > > ("n" "Note" entry > > (file "~/Documents/org/beorg/capture.org") > > "* %^{note} :note: %(org-set-property \"Created\" > > (org-time-stamp-inactive '(16)))" :immediate-finish t) > ... > This is quite a hacky capture template... I'll take that as a compliment. The general ability to set properties during capture seems very reasonable. It might be best to have a specific interface as an alternative to my hack. The use of %(EXP) in capture templates is intended to insert a string returned by the elisp EXP. I bent the rules slightly to set the Created property. There already exists a way to set property values in capture templates via %^{PROP|default}p, but that results in a user prompt. Perhaps a new template construct like %^{PROP|value}v could be introduced in order to set a property value without a prompt. Then I could use %^{Created|%u}v in the template.