From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Capture/store link bug Date: Mon, 25 Mar 2013 19:52:19 -0500 Message-ID: <87txnzyocc.fsf@fastmail.fm> References: <8738vjb0hw.fsf@fastmail.fm> <877gkv5bv4.fsf@bzg.ath.cx> <871ub3100c.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKI7m-000512-St for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:52:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKI7i-0000ii-4x for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:52:26 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKI7h-0000iV-Sq for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:52:22 -0400 In-Reply-To: <871ub3100c.fsf@fastmail.fm> (Matt Lundin's message of "Mon, 25 Mar 2013 19:24:19 -0500") 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: Bastien Cc: Org Mode Matt Lundin writes: > Bastien writes: > >> Matt Lundin writes: >> >>> 1) When an org-capture template is invoked with (a) an active region and >>> (b) an annotation (i.e., a link), the link is not inserted in the >>> capture buffer. >> >> This one must be fixed, thanks. > > Hmm. I see the change you made and it makes sense. But it seems now that > the annotations (i.e., links) do not appear at all in the capture, > regardless of whether there is an active region or not. I think I've figured out why this doesn't work. See line 9492 of org.el. If ignore-region is t, org-store-link does not return a value, which org-capture expects. Rather org-store-link adds the link to org-stored-links. Matt