From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-capture quitting and make-capture-frame Date: Mon, 23 Oct 2017 23:11:50 +0200 Message-ID: <87she9r2ll.fsf@nicolasgoaziou.fr> References: <1508770777.115397.1148043056.71AE2BBC@webmail.messagingengine.com> <87wp3lr5ro.fsf@nicolasgoaziou.fr> <1508791307.1042871.1148450728.33D4D6F3@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6k0p-0002ca-C8 for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 17:11:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6k0o-0002Ae-Is for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 17:11:55 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:49275) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e6k0o-0002AC-CM for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 17:11:54 -0400 In-Reply-To: <1508791307.1042871.1148450728.33D4D6F3@webmail.messagingengine.com> (Tyler Smith's message of "Mon, 23 Oct 2017 16:41:47 -0400") 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: Tyler Smith Cc: Emacs Org-Mode Help Tyler Smith 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,