From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: question about org-element-map missing link in caption Date: Tue, 27 Jan 2015 22:35:09 +0100 Message-ID: <87zj933o1e.fsf@nicolasgoaziou.fr> 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]:34609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDm2-0002Vk-4a for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 16:34:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGDlx-0007c2-Jm for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 16:34:14 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:51300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDlx-0007bS-Dy for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 16:34:09 -0500 In-Reply-To: (John Kitchin's message of "Tue, 27 Jan 2015 10:53:50 -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: John Kitchin Cc: emacs-orgmode@gnu.org John Kitchin writes: > hmm... Is there any way to tell when a link in in an affiliate? so we > can tell when we cannot trust buffer positions? There is `org-element-secondary-p'. > Maybe even better fix the implementation to add the found buffer > positions to some affiliate position so they are correct? This is not always possible: some strings are parsed when the original buffer is not available anymore (this happens often during export). However, it is possible to fix it for captions. I did it in master. Regards,