From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: run a function during capture Date: Mon, 23 Jan 2017 13:56:09 -0500 Message-ID: <87vat57ghi.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVjn5-00081k-QN for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 13:56:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVjn1-0007tZ-R0 for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 13:56:31 -0500 Received: from [195.159.176.226] (port=47884 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVjn1-0007sW-Ko for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 13:56:27 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cVjmo-00087j-1y for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 19:56:14 +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: > ... > - I added a hook to org-capture-after-finalize-hook ^^^^^ > #+begin_src emacs-lisp > (defun as/do-org-board-dl-hook () > (when (equal (buffer-name) (concat "CAPTURE-" as/org-board-capture-file)) > (org-board-archive))) > > (add-hook 'org-capture-before-finalize-hook 'as/do-org-board-dl-hook) ^^^^^^ > #+end_src > > (Note: I mistakenly said that the "prepare" hook worked, but that would ^^^^^^^ > download the file even when cancelling, which was wrong) > Make up your mind, will you? :-) -- Nick