From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [PATCH 1/2] org-store-link: Return link when invoked from within agenda buffer Date: Mon, 23 Aug 2010 04:07:31 +0530 Message-ID: <81aaoetgll.fsf@gmail.com> References: <20524da70811261844o3f47782ay3437fdfdc55bda95@mail.gmail.com> <81fwybeoem.fsf@gmail.com> Return-path: Received: from [140.186.70.92] (port=34535 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnJF0-0004Xs-LD for emacs-orgmode@gnu.org; Sun, 22 Aug 2010 18:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnJEz-0004lp-9y for emacs-orgmode@gnu.org; Sun, 22 Aug 2010 18:42:14 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:33550) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnJEz-0004lj-4o for emacs-orgmode@gnu.org; Sun, 22 Aug 2010 18:42:13 -0400 Received: by pxi5 with SMTP id 5so3515332pxi.0 for ; Sun, 22 Aug 2010 15:42:11 -0700 (PDT) Resent-To: emacs-orgmode@gnu.org Resent-Message-ID: <81d3tatgll.fsf@gmail.com> In-Reply-To: <81fwybeoem.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 19 Aug 2010 00:31:05 +0530") 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 Summary: When I trigger a org-capture, with the cursor positioned on a line in the agenda buffer, I want the link to the agenda entry to be available as an annotation (%a) to the capture process. Currently this is broken. The enclosed patch fixes this. Setup: # file todo.org * TODO Talk to someone SCHEDULED: <2010-08-23 Mon> # org-capture-templates ("z" "Conversation" entry (file+headline "~/conversation.org" "Conversations") "** Note taken on %U\n %a\n %?" :prepend t :empty-lines 1) Steps for reporduction: 1. Restrict agenda to todo.org 2. Do org-agenda 3. Place the cursor on the above todo line 4. Trigger an org-capture for the above capture entry Examine the entries in conversation.org before/after the patch is applied. Note the absence/presence of the link to the parent todo entry. * Conversations ** Note taken on [2010-08-23 Mon 03:58] [[file:~/todo.org::*Talk%20to%20someone][Talk to someone]] ** Note taken on [2010-08-23 Mon 03:42] Jambunathan K. <#part type="text/plain" buffer=0001-org-store-link-Return-link-when-invoked-from-within-.patch disposition=inline> <#/part>