From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: question about org-element-map missing link in caption Date: Tue, 27 Jan 2015 10:53:50 -0500 Message-ID: References: <87k3084h9s.fsf@nicolasgoaziou.fr> <87d26046yr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG8Sj-0006Z9-FI for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 10:54:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG8Sf-0002yo-Ux for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 10:53:57 -0500 Received: from mail-qa0-x230.google.com ([2607:f8b0:400d:c00::230]:36836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG8Sf-0002ye-RZ for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 10:53:53 -0500 Received: by mail-qa0-f48.google.com with SMTP id v8so11908645qal.7 for ; Tue, 27 Jan 2015 07:53:53 -0800 (PST) In-reply-to: <87d26046yr.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, John Kitchin hmm... Is there any way to tell when a link in in an affiliate? so we can tell when we cannot trust buffer positions? Maybe even better fix the implementation to add the found buffer positions to some affiliate position so they are correct? I could give that a try if you can point me to the function it occurs in. Thanks. Nicolas Goaziou writes: > John Kitchin writes: > >> I tried it, and indeed the links in captions are found, but something is >> still not right. The :begin properties of the links in the caption seem >> to be relative to the point after the : in the caption. That isn't >> obvious and makes it hard to store a marker to the link. Is that >> expected behavior? > > This is an implementation detail. Parsing for secondary strings (e.g., > captions, some keywords like "TITLE") happens in a temporary buffer. You > cannot trust buffer positions in this case. > > > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu