From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 0H3UCkMjMmbvgQEA62LTzQ:P1 (envelope-from ) for ; Wed, 01 May 2024 13:10:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0H3UCkMjMmbvgQEA62LTzQ (envelope-from ) for ; Wed, 01 May 2024 13:10:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JaM9c4cD; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714561859; 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=Wf9uXfkWZdrr6xEKAMNL0VLk6NzRfn2RiiwsPbZEL9g=; b=WXuDW16G7wjKPmYjx0nwxH2EWP5x7hK55TqX8eEVGU7IXDzEpMgLW27i0j81EohLKvyIKr DHv1gVcwWwr/TsrvioPk6QtB0jfK+MvCLu/To69woC6aYQO2Hhu1QC27uJMmQZ6YMBIqx5 uWKmBVxRQXJ8/P7SlpH9Pq+QZ7ff+9NlP7Y0b8ug3lJD5MM9oJYqxjDXG0J98f1NineunH XYlDvoMDxnQxePkp0jbXvQFVHM3qWrE41YdU/FHNeoF9TYxj5CjkXfbyn0H9rH+RTpBlnh 9cL2y4PQyArTh3GFWbwBpcYQuQ40GFpew6G22gEn8OCZcvMUhQd3kiNZiM3PsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714561859; a=rsa-sha256; cv=none; b=RKAQSD1c3HWSm377KKGamTmS5WU8wgadxBh8mIjwLqJRTj8KB/Aw9SGNvtEcjZYRH05MJx qQSLH19VlgRwPDVnd7r5drmdS11ZZrYgTqiBLniyBwtDVPofqSt1Z30nXOLH7CfnkPfCR/ 1pdkri7L7sm4gY+meFibnKB5bejaIHx9LyZc9bNmOCDATZIhCuSS3sVBIX7O4FaCQa7X23 zflNKLJ7mAf5X44riW87JK9mASCk+ypF/OW4pQBa7p6D27pXbFgEYN2vdS0OjL/uivZ5MO 78y80i3tZfs/dsM3zSafy2gJhW07aZQgYOThpWkg/l6AuM3hYnZAi2WQaNNWvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JaM9c4cD; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 EC7B45773 for ; Wed, 01 May 2024 13:10:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s27qv-0008O4-4j; Wed, 01 May 2024 07:10:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s27qr-0008Nr-EZ for emacs-orgmode@gnu.org; Wed, 01 May 2024 07:10:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s27ql-00031r-Ih for emacs-orgmode@gnu.org; Wed, 01 May 2024 07:10:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E3DDB240104 for ; Wed, 1 May 2024 13:10:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714561808; bh=cDIwZXhLlYOPGwGXwRLC1b4Gy8+RFfg0xd6uTN3c+ls=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JaM9c4cD7g03VtOnBHSgoBWx41W2D1Id5fQ8NlPLrL+g8aOnxBU4hW01Xyw3M9PCZ WpHm6lnwtHsoyRanLyM/Q7G7oDgL9QfEH6PfK3MGY1d4U4VAV/GVx46mG5/DpWpHRO PR4W3WIDd+OP4/5K6tAMe0PF04HgURHkeQ5tABeRB0CT+lcVrejOKKUaYP6yzU9nqA tQaS6WExw/viOG6cC7v4WEgn6ttgf+60pK0MybZLaez9gK3TsFRULBx5ywF/pDJ07X CsWJJ7CPAqcdUaZ0Yv2f6exapHIMMN0GYJFgKghFxjgVn69N9CwLUy8OekrkzU1ozE XhgFW0CqdoQiQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VTvVS18Lkz9rxB; Wed, 1 May 2024 13:10:07 +0200 (CEST) From: Ihor Radchenko To: Nafiz Islam Cc: emacs-orgmode@gnu.org Subject: Re: [FR] Support headline as a function for file+headline target for org-capture-templates In-Reply-To: References: <87mspb6nf2.fsf@localhost> Date: Wed, 01 May 2024 11:11:17 +0000 Message-ID: <87r0eleqi2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: EC7B45773 X-Migadu-Scanner: mx11.migadu.com X-TUID: jehecfhzx4Wn Nafiz Islam writes: > The problem with my implementation is that it modifies the org file before > prompting the user for item entry. As a result, if I cancel/abort my > org-capture, that modification will still be present. You can make use of `org-capture-put' and :hook capture property to mark a custom region to be killed on abort via `org-capture-mark-kill-region'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at