[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-capture quitting and make-capture-frame
From: |
Nicolas Goaziou |
Subject: |
Re: [O] org-capture quitting and make-capture-frame |
Date: |
Mon, 23 Oct 2017 23:11:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Tyler Smith <address@hidden> writes:
> Quitting needs to do something that you can respond to, either with
> a hook, an advised function or something else?
I thought `org-capture-finalize' would be called anyway. But it isn't
the case.
> My proposal was just the first thing that I thought of, I'm sure there
> are better solutions. That could be (message ...), but I'm missing
> something in that case.
You could use
(condition-case nil
(progn
(org-capture)
(delete-other-windows))
(error (delete-frame)))
Obviously, this relies on the fact that exiting raises an error.
Regards,