From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: run a function during capture
Date: Mon, 23 Jan 2017 14:49:30 +0100 [thread overview]
Message-ID: <m2vat5sx79.fsf@charm-wifi.irisa.fr> (raw)
In-Reply-To: <87ziinq8jz.fsf@gmail.com> (Nick Dokos's message of "Thu, 19 Jan 2017 12:11:12 -0500")
[-- Attachment #1: Type: text/plain, Size: 871 bytes --]
On 2017-01-19 12:11, Nick Dokos <ndokos@gmail.com> writes:
> Alan Schmitt <alan.schmitt@polytechnique.org> 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
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
next prev parent reply other threads:[~2017-01-23 13:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-19 16:47 run a function during capture Alan Schmitt
2017-01-19 17:11 ` Nick Dokos
2017-01-23 13:49 ` Alan Schmitt [this message]
2017-01-20 13:25 ` Xebar Saram
2017-01-23 14:16 ` Alan Schmitt
2017-01-23 18:56 ` Nick Dokos
2017-01-24 8:43 ` Alan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2vat5sx79.fsf@charm-wifi.irisa.fr \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.