emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefano Zacchiroli <zack@upsilon.cc>
To: emacs-orgmode@gnu.org
Subject: org-remember-AFTER-finalize-hook , anyone?
Date: Sat, 30 Jan 2010 17:54:19 +0100	[thread overview]
Message-ID: <20100130165419.GA9466@usha.takhisis.invalid> (raw)

Short summary: I'd like to have a org-remember-after-finalize-hook which
is invoked *after* remember-finalize in function org-remember-finalize.
Does it exist and I've missed it or there is a work-around for its lack?

In more detail, my use case is that I invoke remember from mutt (more on
this when I've solved this last remaining issue) to store org notes
which have backlink to the originating mail. To that end, I use
org-protocol with emacsclient, invoking the following pseudo command:

  emacsclient -t 'org-protocol:/remember:/m/mutt:$mid/mail/$note_body'

It works fine. However, after having hit C-c C-c , only the org-mode
*window* goes away, whereas the whole emacsclient instance stays around,
usually with the scratch buffer. Given that I've invoked it only to
execute org-protocol, it would be nice for the whole emacsclient
instance to go away at the end.

Having the requested hook I can hack a command which close the whole
frame.

Additionally I wonder: isn't this a bug in org-protocol? Can't it just
use the whole frame and make it go away at the end?

TIA,
Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime

             reply	other threads:[~2010-01-30 16:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-30 16:54 Stefano Zacchiroli [this message]
2010-01-30 18:23 ` org-remember-AFTER-finalize-hook , anyone? Ryan Thompson
2010-01-30 23:45   ` Stefano Zacchiroli
2010-03-28 21:12     ` Ryan Thompson
2010-03-28 21:13       ` Ryan Thompson

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=20100130165419.GA9466@usha.takhisis.invalid \
    --to=zack@upsilon.cc \
    --cc=emacs-orgmode@gnu.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).