From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wDc0KbkV+2T5owAA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Sep 2023 14:38:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wDc0KbkV+2T5owAA9RJhRA (envelope-from ) for ; Fri, 08 Sep 2023 14:38:17 +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 F070646F2F for ; Fri, 8 Sep 2023 14:38:16 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ASKQxn3n; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694176697; 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=vm6aC5NCSdIeHupjYF/ikQb9jONQlHgsjl7CopQEN5g=; b=dJ9ljAiHFyrqZitrL9NeemRX3Ixcz7cayavQukbaQA84hYp/vYO+dtOB+6Ufzw9O0xSgjK I6Ev9KfKB71gIocQ/mjobKbxfgxO2sIIFOtfJMOjxrXlQXpm/UNhz1dqgnXN5Ic2rB7B4a 8TKBYsGGRjsVhMmr1gTl0TDpSBHIW7/a65H4/Dt/Tj4/7+UebQ8/Z6rZeN2phghihwMNnC yVr1lUWo7NDmKnIIlFiZKF7npX92EAYgGVAjDsoWkwtXBgi6MRnP5WcIVcHZ+h7l6UaKzX PZbwQJHn0OLHCAHlD6DIuBOlEjVNE1bfyPPfSEhx6VOH+9C9NB/TFviLKCh0kQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694176697; a=rsa-sha256; cv=none; b=K4C+2ih8DMdXtdaWmW9mfRvnfFQqo1yDzYWEK3jUISXaSeE4n5FZxUNXBwtuEJKgfEJD/c RKQ0wZ2yBksxcfo8Ec2wrSZDIzlyVeJt3eVEOsBAuiiJGRAXMXOSDcT5XJMorTn+i751NG t5eQVhc8orMkR00eLiZ6EaKV/+f121fIOMZe3qNnt4YqQyMlDFy0lZbKkf1CYo87/qYAta VYxko3tSmJCKs5slNxcorDFGiXpCtsB7Ot+RvIIYbso8jDZn4enkCyY+bwKcpA8BW5Geo3 PZSORpPaB+mjNSrsJ5tGo/eAERbbubVDdaO92qgyq1OHX5BivgaI3fxKx7fnhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ASKQxn3n; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeajf-00043R-JZ; Fri, 08 Sep 2023 08:37:19 -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 1qeaje-00042J-Dd for emacs-orgmode@gnu.org; Fri, 08 Sep 2023 08:37: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 1qeajY-0002bH-Se for emacs-orgmode@gnu.org; Fri, 08 Sep 2023 08:37:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7F5F6240103 for ; Fri, 8 Sep 2023 14:37:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694176629; bh=hKXrJ8lZGMa4ckTuhzvGkukTexPiBI0FUvNkguXloEU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=ASKQxn3n7VcCIxEcgm6mIz/axTYzGAfbgnC67HbzozHDVqPbgCvLY3Zwgi+rx+IZY qXeWjRJOOGfRAAWvPawQCXm+PZyASAes/a+h47itYKqoYiPz+7SuT7tJZY9+gT7FsG eUgZSxVdmWgpM+Sx0OXtsEDL2G7G6l6kIGRBto5+3crkdVETZg+GP39rbNG2aaCMFN 6eR/VCR9spc3D08v0FWyUkAB7YKJo/VJSSBghpr+VqB3/KnK2aBGJ3s+AgrxUD2Ypb JCslIL7Bi4QsKMi3Fs4jCAH2VDaS3ohABQbpcEKs29DL8aaoL5gbf4Gxy0p9VJzhs3 4Hog/lKq28rBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rhwbm5ZK4z9rxF; Fri, 8 Sep 2023 14:37:08 +0200 (CEST) From: Ihor Radchenko To: Eduardo Suarez-Santana Cc: emacs-orgmode@gnu.org Subject: Re: Feature request: kill-buffer for org-capture-finalize In-Reply-To: References: <87sf7o987k.fsf@localhost> Date: Fri, 08 Sep 2023 12:38:07 +0000 Message-ID: <87pm2s96xc.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: F070646F2F X-TUID: H3nt+dQnmHml Eduardo Suarez-Santana writes: >> May you explain a bit more about the problem you are trying to solve? >> Isn't the temporary capture buffer killed after capture already? >> Or do you refer to the org buffer where the capture is recorded? > > Sorry about that. I refer to the org buffer where the capture is recorded. I > meant: > > "This would be useful to avoid having to kill the target buffer manually." > > I like to keep the target buffer open after the capture is finalized so I can > review the changes later, but sometimes I'd rather prefer to kill it because I > already assume that the changes are correct. This helps to keep the buffer list > clean. Did you consider :kill-buffer property in `org-capture-templates'? :kill-buffer If the target file was not yet visited by a buffer when capture was invoked, kill the buffer again after capture is finalized. Or do you mean that you sometimes want to kill the target org buffer and sometimes not? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at