Ok, thanks for confirming! Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:
> Hello, > > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I have run into a surprise with org-element-context on a link in a table.el >> cell. It is best illustrated here: >> >> +---+------------+ >> | # | name | >> +---+------------+ >> | 1 | [[./test.org]] | >> +---+------------+ >> >> #+BEGIN_SRC emacs-lisp :results code >> (save-excursion >> (re-search-backward (concat "test." "org")) >> (org-element-context)) >> #+END_SRC >> >> >> #+RESULTS: > >> #+begin_src emacs-lisp >> (table >> (:begin 1463 :end 1563 :type table\.el :tblfm nil :contents-begin nil >> :contents-end nil :value "+---+------------+\n| # | name >> |\n+---+------------+\n| 1 | [[./test.org]] |\n+---+------------+\n" >> :post-blank 1 :post-affiliated 1463 :parent nil)) >> #+end_src >> > > [...] > >> Is this expected behavior, or a bug? > > This is expected: table.el tables, as their name suggest, are opaque to > Org mode. In particular, it doesn't know how to parse them. It just > feeds table.el with them at export time. > > 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