From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: question about org-element-map missing link in caption Date: Mon, 26 Jan 2015 19:13:52 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFtn5-0005WH-P9 for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 19:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFtn2-000204-6M for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 19:13:59 -0500 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:64145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFtn2-0001zm-2i for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 19:13:56 -0500 Received: by mail-qa0-f50.google.com with SMTP id k15so9359253qaq.9 for ; Mon, 26 Jan 2015 16:13:55 -0800 (PST) Received: from Johns-MacBook-Air.local (c-67-186-28-151.hsd1.pa.comcast.net. [67.186.28.151]) by mx.google.com with ESMTPSA id v8sm11556961qaf.12.2015.01.26.16.13.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 16:13:54 -0800 (PST) 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 In the following org document, org-element-map only finds one link, but the buffer acts like there are two links. The free link is found, but the link label buried in the caption is not found. However, it exports correctly, and the caption link is clickable, so the buffer certainly thinks it is a link. Is this expected behavior? * test links #+caption: some text label:test | a | b | | 1 | 3 | label:test2 #+BEGIN_SRC emacs-lisp (org-element-map (org-element-parse-buffer) 'link (lambda (link) (org-element-property :path link))) #+END_SRC #+RESULTS: | test2 | -- 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