From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Tyler Smith <tyler@plantarum.ca>
Cc: Emacs Org-Mode Help <emacs-orgmode@gnu.org>
Subject: Re: org-capture quitting and make-capture-frame
Date: Mon, 23 Oct 2017 23:11:50 +0200 [thread overview]
Message-ID: <87she9r2ll.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <1508791307.1042871.1148450728.33D4D6F3@webmail.messagingengine.com> (Tyler Smith's message of "Mon, 23 Oct 2017 16:41:47 -0400")
Tyler Smith <tyler@plantarum.ca> 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,
prev parent reply other threads:[~2017-10-23 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-23 14:59 org-capture quitting and make-capture-frame Tyler Smith
2017-10-23 20:03 ` Nicolas Goaziou
2017-10-23 20:41 ` Tyler Smith
2017-10-23 21:11 ` Nicolas Goaziou [this message]
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=87she9r2ll.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=tyler@plantarum.ca \
/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.