emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Matt Lundin <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Clean capture from command line?
Date: Thu, 18 Nov 2010 07:20:53 +0000	[thread overview]
Message-ID: <87ipzvrpxh.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: 87aal7cr2e.fsf@fastmail.fm

Matt Lundin <mdl@imapmail.org> 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)

      reply	other threads:[~2010-11-18  8:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-16 20:43 Clean capture from command line? Allen S. Rout
2010-11-16 22:26 ` Eric S Fraga
2010-11-16 23:35   ` Friedrich Delgado
2010-11-18 17:32     ` Allen S. Rout
2010-11-27  6:56       ` [Accepted] " Carsten Dominik
2010-11-17 18:24 ` tycho garen
2010-11-17 19:11   ` Eric S Fraga
2010-11-18  2:18     ` Matt Lundin
2010-11-18  7:20       ` Eric S Fraga [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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipzvrpxh.fsf@pinto.chemeng.ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).