From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MGIvESxiX2PJEAEAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 06:50:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0NYzESxiX2PVkAAA9RJhRA (envelope-from ) for ; Mon, 31 Oct 2022 06:50:36 +0100 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 0F06831723 for ; Mon, 31 Oct 2022 06:50:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opNgJ-0005D8-QY; Mon, 31 Oct 2022 01:49:55 -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 1opNgG-0005Cd-Po for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:49:52 -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 1opNgF-0006Ph-7U for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:49:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A9BD3240028 for ; Mon, 31 Oct 2022 06:49:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667195388; bh=6Wy87r+Zv/p0x9G3xU5L3gvGKpTzJIQWY32ELpQwqbM=; h=From:To:Cc:Subject:Date:From; b=USqjesH9zS4E+isGzjMQxhs+uw9YIkRzIdNg6Odtr3LwSHvp64R6geJjB0fgqpKaG PkPFboMpAD7cmJaALVGIYmA5LT5ZU6tBon68ObvWh7NncFQ8orUfWItBNryBLTZU2W dm9vehjecHgb2iMzVGoUFBv8FwzaoS25tayCjzjk4gwqJb120+jYBp0L6JDfQWHVS6 j23DghlLafoHKcK+33AV69Ma/Z0sm21cemBvqsGi3pMw5Oej0IoAGEADVkiSEF+J8L afQQg4SoIO8n4clto0SVP15VwOjE/80RoQ/zLZSM/PmNdnDtVaSVgrgP69w7nRETIQ /V5l6NWccFdxQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N12Kl3FFxz6tnl; Mon, 31 Oct 2022 06:49:47 +0100 (CET) From: Ihor Radchenko To: Valentin Herrmann Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] lisp/org-capture.el: Add hook & hook options to org-capture In-Reply-To: <20220206092251.1159025-1-herr.valentin.mann@gmail.com> References: <20220206092251.1159025-1-herr.valentin.mann@gmail.com> Date: Mon, 31 Oct 2022 05:50:25 +0000 Message-ID: <8735b4lexq.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: -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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667195436; 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=wz9lS+1S9dq+vhYrU/ZsEgOlOc9EdR3c3r0BjG5La9c=; b=N50shDinOk9lC6jErJlHBTJrHfz47oi1Ko48S+0w8ETxIwE84/LeILnpEL1XYw45d5WgHF ZqwBWwz9rtv38HVQac1YgOfMQ49lz3qaT7PN3Q5gt7Doql8xIEEYd2WuTY1rilY3xnnjqZ bToYxi+V0uvOxFZl/RTi/v8N45Jd2Me4DEjip5cpIrhz3I0j7VUz/7ofw+gaNDeIkZlgqN aiA/R4LmQhiv7bNGfU2BMhD7FlFSSMgDMDFRlzqbyWGcTDj9eXRhwiKZ4beycn6DvZxuKX JHROpYZVc1h6nh0zS0f2o6LXRdci6G375l6CQfRcDfqWVUYXHTnXf0NXekEUUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667195436; a=rsa-sha256; cv=none; b=YgwnVM2y/wzSO8AJR8xcXFlTvzfV9W1Kp/2H9dH23wmDd2SnlNq1WH89GCltd1GCJ7TCNA Ow8Et+OcTjGHbo8GfUqv2EhIOnVgk0fgyWaWb0ocYieYaua8U48BjwXayu5Ix0aUjpVXJk MJCzSMYDlkLJSl7K2yRi634hZWbCVrTx/96DuBuOaZhpEbnn7X8CZpu1mkLd1H5N9hJy0W +bKr5D2p/8s+g/swaUTx1Yce7uuKh9SFs6+PEhJMipceBiWaJBoHEKpVvSGFqSFS5+/d+v 5EAdr2C/paVpn8/MVlKGAvtc4DVmd/KkVwfONMB9cA8JZSsKGoFCSEsxENC7YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=USqjesH9; 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" X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=USqjesH9; 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" X-Migadu-Queue-Id: 0F06831723 X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: isS3m4EHtpJk Valentin Herrmann writes: > * lisp/org-capture.el: > (org-capture-templates): Document the new template options. > (org-capture-before-view-hook): Add new hook for parity with the > template options. > (org-capture): Implement the new template options. > (org-capture-finalize): Implement the new template options. > (org-capture-kill): Remove unneeded line. > * doc/org-manual.org (Template elements): Document the new template options > > This change comes from my personal config, where I use e.g. the option > `:before-finalize-hook' to capture an task automatically, whenever I > capture using a certain template. An equivalent patch has been applied in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7f3a6cf6e72fe9968c6ef32211c754b7fe0172b6 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at