From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: run a function during capture Date: Mon, 23 Jan 2017 14:49:30 +0100 Message-ID: References: <87ziinq8jz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVf05-0008BB-US for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 08:49:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVf02-0004Wm-Sf for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 08:49:37 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:23623) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVf02-0004WD-GB for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 08:49:34 -0500 In-Reply-To: <87ziinq8jz.fsf@gmail.com> (Nick Dokos's message of "Thu, 19 Jan 2017 12:11:12 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nick Dokos Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-01-19 12:11, Nick Dokos writes: > Alan Schmitt writes: > >> Hello, >> >> It is possible to run a function at the end of capture? I would like to >> call org-board-archive (that downloads a web page according to some >> properties) before finishing the capture? >> > > There are three hooks that are run from org-capture-finalize: > > - org-capture-prepare-finalize-hook > - org-capture-before-finalize-hook > - org-capture-after-finalize-hook > > Check their documentation for when they are run and what the context is. > One of them should be good enough for what you want to do. Thanks, this was most helpful. org-capture-prepare-finalize-hook worked great. Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-12: 404.48, 2015-12: = 401.85 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYhgnrAAoJEAQNCjtO0uXHpxIH/0st0/Fd0NP40k2c1iAG0Jw2 NuYV3kJR63HpTqmfv82nAbpCA6Qy/TUDd7S+T/zurYM7/n8JXa5ws3vmFYcD27iE kolxmMXJTLRX1mpVAOxggecaIp4raYAJV4M63cCcw64KT0ngWpMhY66QnUK+HR6p 9Ik4pI3Wcr/VhmUroz84RVXRJqYzo7iJmWcmrSYd0gWe4De2nnFSM3aWRYeJdj4I cK49yZjPy5WvkRKQ/QpLXMCYlU2Mus1YbmbCmUb9TZ3CO4b94m/DML4KzX/mQfMz KYNW54oBXKahbH0gto891vzqX+L68K2bPqPTWPcV101mEs7prxMmtK3CkRBc2fo= =z+yT -----END PGP SIGNATURE----- --=-=-=--