[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Clean capture from command line?
From: |
Eric S Fraga |
Subject: |
[Orgmode] Re: Clean capture from command line? |
Date: |
Thu, 18 Nov 2010 07:20:53 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Matt Lundin <address@hidden> 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)