From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Zacchiroli Subject: org-remember-AFTER-finalize-hook , anyone? Date: Sat, 30 Jan 2010 17:54:19 +0100 Message-ID: <20100130165419.GA9466@usha.takhisis.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbGac-0006cF-4d for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 11:54:30 -0500 Received: from [199.232.76.173] (port=56177 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbGab-0006bx-RV for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 11:54:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbGaW-0001OF-IA for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 11:54:29 -0500 Received: from fettunta.fettunta.org ([67.207.129.222]:49803) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbGaU-0001Nk-R2 for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 11:54:23 -0500 Received: from usha.takhisis.invalid (unknown [10.17.0.10]) by fettunta.fettunta.org (Postfix) with ESMTPS id 96B6A18250 for ; Sat, 30 Jan 2010 16:54:21 +0000 (UTC) Content-Disposition: inline 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: emacs-orgmode@gnu.org 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. --=20 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'=E8 ..| . |. Et ne m'en veux pas si je te tutoi= e sempre uno zaino ...........| ..: |.... Je dis tu =E0 tous ceux que j'aim= e