From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: run a function during capture Date: Thu, 19 Jan 2017 12:11:12 -0500 Message-ID: <87ziinq8jz.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUGFa-0004dX-1l for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 12:11:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUGFW-0001PC-2e for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 12:11:49 -0500 Received: from [195.159.176.226] (port=53441 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUGFV-0001Ot-8X for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 12:11:46 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cUGFB-0005RZ-OH for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 18:11:25 +0100 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: emacs-orgmode@gnu.org 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. -- Nick