[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-element-context in table.el behavior
From: |
Nicolas Goaziou |
Subject: |
Re: org-element-context in table.el behavior |
Date: |
Thu, 02 Jan 2020 15:50:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
John Kitchin <address@hidden> 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,
--
Nicolas Goaziou