From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Clean capture from command line? Date: Thu, 18 Nov 2010 07:20:53 +0000 Message-ID: <87ipzvrpxh.fsf@pinto.chemeng.ucl.ac.uk> References: <87eialkniq.fsf@ufl.edu> <20101117182453.GC16104@arendt.linode.com> <87lj4r934r.fsf@ucl.ac.uk> <87aal7cr2e.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=56967 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIzwX-0000qm-Iq for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 03:34:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIzwW-0001GA-LU for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 03:34:09 -0500 Received: from vscani-d.ucl.ac.uk ([144.82.108.132]:49473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIzwW-0001Fs-DQ for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 03:34:08 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: emacs-orgmode@gnu.org Matt Lundin writes: [...] > The problem is that the functions capture-finalize and capture-destroy > do not exist. I imagine the original code was designed for remember mode > (which does have the functions remember-destroy and remember-finalize). > > The relevant function in org-capture.el, I believe, is > org-capture-finalize. I think the following defadvice should work: > > (defadvice org-capture-finalize (after delete-capture-frame activate) > "Advise capture-finalize to close the frame if it is the capture frame" > (if (equal "capture" (frame-parameter nil 'name)) > (delete-frame))) > > Best, > Matt Ah ha! Yes, this works perfectly fine. Thanks! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.89.g97f4c)