Alan Schmitt <[email protected]> wrote:

> Calling `org-capture-kill' from any of the four `org-capture-template'
> hooks always fail. Here is a way to reproduce this and the observed
> behavior:

> […]

I haven't checked whether this applies to your case, but the
last time I messed around with hooks in org-capture, I was
surprised that the current buffer was not the capture
buffer, but the document buffer (?) when the hook was
executed.

> Context:
> I’m trying to have some code that aborts an org-capture initiated by org
> protocol under some conditions.

Personally, I would be rather confused if the capture buffer
pops up and gets closed immediately, without any
explanation.

Tim

Reply via email to