From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: capture template question Date: Thu, 02 Aug 2012 16:36:36 +0800 Message-ID: <87pq79d71n.fsf@ericabrahamsen.net> References: <87mx2deqc0.fsf@ericabrahamsen.net> <878vdx3hb1.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swqtu-0005Xu-Ri for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 04:37:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swqtp-0006bq-2N for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 04:36:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:50203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swqto-0006a6-R4 for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 04:36:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Swqtn-0001gB-Eg for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 10:36:51 +0200 Received: from 114.250.132.156 ([114.250.132.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Aug 2012 10:36:51 +0200 Received: from eric by 114.250.132.156 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Aug 2012 10:36:51 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Aug 02 2012, Tassilo Horn wrote: > Eric Abrahamsen writes: > > Hi Eric, > >> I have a capture template that I use for noting gnus messages I want >> to respond to. What I'd like to end up with is: >> >> * EMAIL Respond to [[gnus.mail:sdfdfdfsdfdsfsdf][Bob Johnson]] >> >> Where the link address is the message under point, and the link >> description is the message's %:fromname. >> >> I may be dense, but I don't quite see if/how this is possible… > > An org-capture-templates entry like that should do: > > ("e" "EMAIL" entry > (file "/home/horn/Repos/org/remember.org") ;; adapt to your needs > "* EMAIL Respond to %a%?") > > In contrast to what you requested, the link's name is something like > > Email from Eric Abrahamsen: capture template question > > I think, that's even better. (Honestly, it seems there's no gnus link > support for picking out only the from-part.) :-) That's what I had before! I hate the big long citation (I seem to get emails with epic Subject headers), and was trying to make something more concise. Rather than trying to add various ways of citing links, perhaps it would be nice to have a format code for the literal link to the thing under point at time of capture? What I mean is, something like "%l" so I could do this: * EMAIL Respond to [[%l][%:fromname]]%? Seems like that would add quite a bit of flexibility… E -- GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11) of 2012-08-02 on pellet 7.8.11