From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IFUND8NS/mQJtwAAauVa8A:P1 (envelope-from ) for ; Mon, 11 Sep 2023 01:35:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IFUND8NS/mQJtwAAauVa8A (envelope-from ) for ; Mon, 11 Sep 2023 01:35:31 +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 2CE8E59E61 for ; Mon, 11 Sep 2023 01:35:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=eJ7kyFwW; 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=1694388930; 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=B9PgZr582rMIgE+OWJXEa8H93CKhuboMMV6BSRrEEyE=; b=Bz6udAdOCyygUihs6hlLbdvbjSWKsM2PO6PN5eeAmIoS3+D1lEnHYL6Yr5PprgRKbX2Hf5 EGjQqEuqbhcQcx3wyvC21d6OvuVKbgMTkanhfjT33QIB+5tAXvRrZDetXUsRvkN/XgqY9n XkuxYmgGRQgoNoV/F0niEEceTs2gVHLpVi+7YVBUaOJeuPlQE2JINkRVbf8Qb20XKaWuOa 8wSQFtz75a0A738eOfzA1xnll7q8GU8wsxJKbK1XifPCFNoPmFQtE1saJrlU9sGPeUH696 i57iuZcFW/C8RqNu+ftMCx9aUsu3eWRnrvLCP68XbUSK6m+QZPJlgXhsdaQAZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=eJ7kyFwW; 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-Seal: i=1; s=key1; d=yhetil.org; t=1694388930; a=rsa-sha256; cv=none; b=F8if9i7eIAK7mEXouhkGflmUm71/LgzjMxL3pVUeGe4BYH7Jvr4yOYsYbHise6RC7LTWzu n//KBmK94C/QrrDH2oudduO6UL9lSi7Cu9JoIzRxBt9zi+G6g5bAaxujKOlc4Y9CJtpyVW j+i6yMLxNk8DaTGwg+JF/HiMaebKaLttMwDTiotHcEj53QnZWFVXj11Q9twpltQ1zM80f4 GW6fGUkz1PxMm2Kg7tprgwZnunanMZgmM2yYGqvj3PnIhItuQGDTd7vKfH88GLC7ffmJ4K +IFgnFlO6/ZspjdZydBSQYrKI2s1pQbqCUvdcxnaXCEJYf4SOKfXjKGa+l3RBw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfTiJ-0002pu-J5; Sun, 10 Sep 2023 19:19:35 -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 1qfTiI-0002ph-1t for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 19:19:34 -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 1qfTiE-0003vJ-Jp for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 19:19:33 -0400 Received: from localhost (localhost [127.0.0.1]) by relay.itccanarias.org (Postfix) with ESMTP id 5BF4B43951; Mon, 11 Sep 2023 00:18:01 +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 ow00Vc3X3HvL; Mon, 11 Sep 2023 00:18:01 +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 C6556420BA; Mon, 11 Sep 2023 00:18:00 +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=1694387880; h=from:subject:to:date:message-id; bh=B9PgZr582rMIgE+OWJXEa8H93CKhuboMMV6BSRrEEyE=; b=eJ7kyFwW+Pf0fPInzTRehzykes4m+lle+u3QxtrsJjYZMezHOugH229yKjVZjJYkyHqGWMfbXkl KTaJzQnTZM4w3Ca4gRixXkGCGoIW1FZyIUwVodTrl1nkVh3urdCxpTsuMzVHFyz6McNj0XbRng3D4 7qvCKEYjElQBh5NB4jOSkVNRVpSrzMv7FBrEINY7HSHxawZbU6h7n5S37VbxeGLTW1lzHQuZ9xp4k R93UY/RGna9WFxV855TfjuPfZcRuU6gvIS3cRVIs1Vep6RQrvHmtE3PS9PfuNuD4qcv+l1PL38cn9 a0DKVmNN3JG9ZIkr2bxv4hbYK3weWFQHYsdw== 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; Mon, 11 Sep 2023 00:17:59 +0100 Date: Mon, 11 Sep 2023 00:17:57 +0100 From: Eduardo Suarez To: Ihor Radchenko CC: Subject: Re: Feature request: kill-buffer for org-capture-finalize Message-ID: References: <87sf7o987k.fsf@localhost> <87pm2s96xc.fsf@localhost> <87r0n77li4.fsf@localhost> <87h6o2jv8y.fsf@localhost> <878r9epa6t.fsf@localhost> MIME-Version: 1.0 In-Reply-To: <878r9epa6t.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 2CE8E59E61 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -7.15 X-Spam-Score: -7.15 X-TUID: baz6Qf7pd6ug On Sun, Sep 10, 2023 at 10:57:46AM +0000, Ihor Radchenko wrote: > Then, what you can do is > > (defun my-org-capture-finalize (arg) > "Like `org-capture-finalize', but kill Org buffer with double prefix arg." > (interactive "P") > (if (equal arg '(16)) > (save-excursion > (org-capture-finalize) > (org-capture-goto-last-stored) > (kill-buffer)) > (org-capture-finalize arg))) > (define-key org-capture-mode-map "\C-c\C-c" #'my-org-capture-finalize) It worked! Thanks a lot for the help.