From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8Bl1A1MY+2RDUQAAauVa8A:P1 (envelope-from ) for ; Fri, 08 Sep 2023 14:49:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8Bl1A1MY+2RDUQAAauVa8A (envelope-from ) for ; Fri, 08 Sep 2023 14:49:23 +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 412E450F27 for ; Fri, 8 Sep 2023 14:49:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=iAA+5q50; 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=quarantine) header.from=itccanarias.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694177362; 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=2AgD9MKxlvyjVBQFlO5atHwg8rmhaa6XmGdX4xB39aI=; b=L/vrDvtzAXndRIT0EpsfGmfejpyVb96pdwS7B/LyK57qe3xtUNX1cA5qQj9NbJOOvXBe8W plvNvbUqjWH4by1g6UiKaUylZHXLUSms9PvhauM9PfKRc+zYFOB6vMzXYcX08jz/+8jXCM DTG3+MHPEyPRwxjhv0VIidG9BP8239+ryveRvB7ialbsNm2v449eYttqrjmnVDS5ulL3Jz is/BHT6y692xRavp9Tx39/FHaW2ivnWDsIfuTm3+GEyN5h2ArO1iOU935/Z7q1Sb0Dr8+X QeMNlj5l32xK1I7G5wcsKahRH1I2AAQQF2Ft6KesbvCZy8nJw+fncns7Fb0pJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694177362; a=rsa-sha256; cv=none; b=VG3crxD+Dm9XvGHlTxtYHreiYI2FUl1dcoRiYKEqOiZIVU3Cs7/iY/M2UCzUZfOPCy3P3K tFSXSvfFkDehsxhrBu9x9m0DlA7JtXVGV1qkJQstVS/VAc4XrqTUEbFaBwA9WvDvFudTdC 4hpLetNbMOAYyNp2VKqiJStdR1ew34HucuA0yfo7tBGh4ODGWNPbynsvCkQ0iai4vHywqo kQcaG2NGZQCR/imrhZiebKMqVUluC9QdQgHDkZuMWKPuuM2Cmo2mnAWWVJ6dvtBoV+XbGP wvav90aZFqbg3e1IuhuCWhH8ScdN3fMwVtQhP6CBvneWHY2Xmz5w2OEsB8Je8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=iAA+5q50; 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=quarantine) header.from=itccanarias.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeatn-0006Ez-Qg; Fri, 08 Sep 2023 08:47:48 -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 1qeatb-0005y8-GD for emacs-orgmode@gnu.org; Fri, 08 Sep 2023 08:47:38 -0400 Received: from relay.itccanarias.org ([62.174.94.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeatU-0006lH-IN for emacs-orgmode@gnu.org; Fri, 08 Sep 2023 08:47:32 -0400 Received: from localhost (localhost [127.0.0.1]) by relay.itccanarias.org (Postfix) with ESMTP id 9C4F843B36; Fri, 8 Sep 2023 13:47:24 +0100 (WEST) Received: from relay.itccanarias.org ([127.0.0.1]) by localhost (gwmail-lp.corp.itccanarias.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mNEgroCWlc7G; Fri, 8 Sep 2023 13:47:24 +0100 (WEST) Received: from Erasure.corp.itccanarias.org (erasure.corp.itccanarias.org [10.141.187.131]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay.itccanarias.org (Postfix) with ESMTPS id 6C2E243B16; Fri, 8 Sep 2023 13:47:24 +0100 (WEST) Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline DKIM-Signature: v=1; a=rsa-sha256; d=itccanarias.org; s=default; c=relaxed/relaxed; t=1694177244; h=from:subject:to:date:message-id; bh=2AgD9MKxlvyjVBQFlO5atHwg8rmhaa6XmGdX4xB39aI=; b=iAA+5q500ecAe8hkPMsodVMxVSjNBHhmv7HXPrsxjtLiyqi/KgkcB2OWNQr1DItwRaH/pMKEYxh doIKiOr+wMIfn1y++dD7mF2DDh+M6mbElL4+bq3QJyCQ5aI3nx+l8+qIYu1W6ofamkQK5PIFnhMSr GXhtngGmhbOwmAto3l7ZUUZ/9XmmZg76JYIfd7LXLALiYYPVuKlxDpz/riyrOEKZzI3rFdkaZ+fk+ NTQ6/EepgHKSMr4MVuC8bybIQdoGGPnR5YGGNn7wklC+5Jymu5hfttZTRMKNDc6aCsLa7xW71l74s U1QkB4FhiW3Sn9mgzd3g4yRLSvGbZm6oXQzg== Received: from itccanarias.org (10.141.153.141) by Erasure.corp.itccanarias.org (10.141.187.131) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 8 Sep 2023 13:47:23 +0100 Date: Fri, 8 Sep 2023 13:47:21 +0100 From: Eduardo Suarez-Santana To: Ihor Radchenko CC: Subject: Re: Feature request: kill-buffer for org-capture-finalize Message-ID: References: <87sf7o987k.fsf@localhost> <87pm2s96xc.fsf@localhost> MIME-Version: 1.0 In-Reply-To: <87pm2s96xc.fsf@localhost> Received-SPF: pass client-ip=62.174.94.155; envelope-from=eduardo@itccanarias.org; helo=relay.itccanarias.org 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, 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.61 X-Spam-Score: -2.61 X-Migadu-Queue-Id: 412E450F27 X-TUID: nX6GIPx868Gf On Fri, Sep 08, 2023 at 12:38:07PM +0000, Ihor Radchenko wrote: > 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? 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.