From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MH+fAVA4/GTRAwAA9RJhRA:P1 (envelope-from ) for ; Sat, 09 Sep 2023 11:18:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MH+fAVA4/GTRAwAA9RJhRA (envelope-from ) for ; Sat, 09 Sep 2023 11:18:08 +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 68A98538DF for ; Sat, 9 Sep 2023 11:18:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=itRW2QMn; 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=1694251087; 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=ERiIdMdlKgoAOG6j4xwwYWqHJu5a8CBX6EuQs4oe3n4=; b=fQr16pRjI/5L9Qr17LxHPjYeiLZ4GQ1z7cOSuTOox+ZvpF4Ln0o7p99pd3SgB6s2u7RftJ bo09X9AVtrRMblimacjraFLCSi67Q6JKxI9Vbbct2u4ueKxTyk/KpVLk+zqBlmOAfj6sGS 2PK8nMPszaGV5ng96J+CIqGhPw4oeOLnJXhPNvAWs6B7/i6kfaLlIf/0ENbxN1ZLKScKii JrqroE5ujpS/SSw6um0EmFEIVoxJuVcjI7NZH1t78b+0m2Y6SAkfFn9Fiq3+JtWFh07cgm W0rkUGWM01IPLfmFSXgm+nARUIcetqywh/H0xy2BR6lQ8jvlha8UUxgEuybLkQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694251087; a=rsa-sha256; cv=none; b=he6Dyh7t79KUCrKfaq4nj9tUpPzivs2Y1VoK1dm04s1L91+VbnPQbAfMi0InpeQoxiEtl8 yCb5Bwc9LXLnzvZDMak/klymaCFk/EcI4f05oLcLxLDo2nSmdkoEXJgsVmuLN1+DQxEqr1 Mn66mIyGE454GhorMZ6pvHybA0LMAB3t/dJv+ikz09OaOBA35u7mJ7t+v2T9np0ejLVFaD vamUt9PutnLMW85KVz7UIa3Q4hFU1DsRx13QlSsz6tFphRfcu2qqsFF2ORrCrSlzJxTH/H VIpvqgednoOldgF4Jv1fL7qDUbfq6t0agffwbbVjXsIebkyJ10n1fFzyBA8pLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=itRW2QMn; 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 1qeu5s-0001Pr-LN; Sat, 09 Sep 2023 05:17:32 -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 1qeu5q-0001Pg-VJ for emacs-orgmode@gnu.org; Sat, 09 Sep 2023 05:17:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeu5o-00083K-5S for emacs-orgmode@gnu.org; Sat, 09 Sep 2023 05:17:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 41279240027 for ; Sat, 9 Sep 2023 11:17:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694251046; bh=2oaMIzilCMCq+rwxiB6ocFeNRH6EPGbzLuJ5NJUO8LM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=itRW2QMnCMTvo4CW8iGCNZgCLEkNjmgGBPeXAMQSN9cYQsVqVwthIRwAIB6Iq9+U1 Vh8Lcm0wLCgPturj6Q4YBVxdloztjC7j5dImdGSHGqMW94pk6pyvJUwbnb9tm6OHmm 94feZ0kYlQlpqUCA2u/QQUDiCxND6H/vkojwu6lxDVCElvCcPk3TfQGbKxJvJtmQa3 pYkAfPf4qPfg6Cluu1zk4YwbkNSRV4je1iWBWX+lXzx1D8F4vtstRLsWr6ivgE7q9n Z2tX1R43l4aOhqAR97YAqjc0+FaZSrIZAP6HnQXIKNQNOSrpSywAsOtjGd8dsIgY6I nAhJLyqSiVuBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RjS6s68XDz9rxG; Sat, 9 Sep 2023 11:17:25 +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> <87pm2s96xc.fsf@localhost> Date: Sat, 09 Sep 2023 09:18:27 +0000 Message-ID: <87r0n77li4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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: mx2.migadu.com X-Spam-Score: -5.22 X-Migadu-Queue-Id: 68A98538DF X-Migadu-Spam-Score: -5.22 X-TUID: jP/qxkJIZ4Y5 Eduardo Suarez-Santana writes: >> Or do you mean that you sometimes want to kill the target org buffer and >> sometimes not? > > Yes, I mean that I sometimes want to kill the target org buffer and sometimes > not. I don't want to kill the target buffer as the default behavior of my > capture template. I see what you want. I am not sure if it is something commonly needed. Unless more people are interested, I do not find this feature as useful for inclusion to Org mode. For personal use-case, you can utilize `org-capture-after-finalize-hook', checking `current-prefix-arg' and killing the target org buffer according to the prefix argument passed. Then, for example, you can make C-u C-u C-c C-c unconditionally kill the target org buffer. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at