emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-element-context in table.el behavior


From: John Kitchin
Subject: Re: org-element-context in table.el behavior
Date: Thu, 02 Jan 2020 11:03:46 -0500
User-agent: mu4e 1.2.0; emacs 26.3

Ok, thanks for confirming!

Nicolas Goaziou <address@hidden> writes:

> 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,


--
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]