emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* question about org-element-map missing link in caption
@ 2015-01-27  0:13 John Kitchin
  2015-01-27 11:03 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: John Kitchin @ 2015-01-27  0:13 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-27 22:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-27  0:13 question about org-element-map missing link in caption John Kitchin
2015-01-27 11:03 ` Nicolas Goaziou
2015-01-27 13:48   ` John Kitchin
2015-01-27 14:46     ` Nicolas Goaziou
2015-01-27 15:53       ` John Kitchin
2015-01-27 21:35         ` Nicolas Goaziou
2015-01-27 22:05           ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).