From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kFeoFc4pNmSCgAEASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 05:47:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oFSvFc4pNmSO4AAA9RJhRA (envelope-from ) for ; Wed, 12 Apr 2023 05:47:26 +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 D5CF1282A9 for ; Wed, 12 Apr 2023 05:47:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmRRC-0006mD-5f; Tue, 11 Apr 2023 23:46:26 -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 1pmRRA-0006ln-Bs for emacs-orgmode@gnu.org; Tue, 11 Apr 2023 23:46:24 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmRR5-0005sV-MJ for emacs-orgmode@gnu.org; Tue, 11 Apr 2023 23:46:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 48403E81711 for ; Wed, 12 Apr 2023 05:46:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sS2dPFoE7rlD for ; Wed, 12 Apr 2023 05:46:11 +0200 (CEST) Received: from localhost (178235147007.dynamic-3-poz-k-0-1-0.vectranet.pl [178.235.147.7]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 57F3716788D5 for ; Wed, 12 Apr 2023 05:46:11 +0200 (CEST) User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Org-Mode mailing list Subject: Can a post-capture hook know which capture template I used? Date: Wed, 12 Apr 2023 05:46:07 +0200 Message-ID: <875ya12268.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681271246; a=rsa-sha256; cv=none; b=DuGM7RdpLbS3mnAcGRl9cQ9UAjLCdVrS4KmzYC9QlSKTSG6Q0KjbJaM8VXDkCkuzc0SgRK BnVAIxGMK88+uw75qdycIogbCTZFXVgCiVb5YmBdvTP05cwj7Vifcn83unrY5SI/RO6tZS ZeeC0qBjCHzyEWyvhmLbL7xUUmi3usdW+d523BUO/PEX4SEzipzWjMnq3zpfaqCAsUYhG4 Fr8fO8bLOCqbturGruH1sYRzLqLDkHepdLjkkdGvpB0Fdxph0dQr9wwWnA3I/nqZdXpYOH uk1h8eUkKvkhOqTLbk6IHVeO+2Hkz7TO1dlnBjkMZ5VHiYLxe0cKgSCwBn3Psg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681271246; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=pb4uNSvCsG+/4a9cipyitSZH+SSX5adz3POTc8rwMx0=; b=petLkCfqSQa6AQArsBF0U9Wud3GrSs/RPyia0PIYOWtFIwxf7DDptlFvII/6/tysuN8hiA jeR8rTj1Y2SKvHDF1bKSc845YswfAtd7QJtRc4QkyLWJjKGdLgVeWLGa4k96wn60AJp26E JVL7+DxU46tA846G6mYCkrya0pKSNJyJoos9cXD9ifdaL4mycrJ8T7WbhEDH1Z7stfeMfB gdjW/p5g3Dc7OJ7VaFFpp9Ep2nPllwUr8z+yvQ7fC+T1iiADdeH8/o6ccnsR982gJQhXPq AHUaStVd/yBWDXxfPGvsxY8RntGN6JNdJsPK5gxpnD+G8Fx9r229uTylCbG7bQ== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.92 X-Spam-Score: -2.92 X-Migadu-Queue-Id: D5CF1282A9 X-TUID: DW9BVPGp6KNI Hi all, I'd like to perform some actions after a successful capture. I know about `org-capture-.*-finalize-hook's, and I think `org-capture-after-finalize-hook' is the one I need, but I need to decide what action to take depending on the capture template used. How can I access it? TIA, -- Marcin Borkowski http://mbork.pl