Hello, Ihor Radchenko <yanta...@gmail.com> writes:
> I encountered a bug in test-org-element/cache. The test creates the > following Org file with table and runs (org-element-at-point) at the > beginning of the second line. The expectation in the test is that we are > at the table row, while in reality these are two distinct tables (the > "ab" line is a table within "item" list entry): > > #+begin_center > P0 > > - item > > P1 > | a | b | > | c | d | > #+end_center > > > I tested with emacs -Q (with no org-element-cache enabled). The return > value of (org-element-at-point) is (table (...)). In the test (before > inserting "item") the same point has different element: > > #+begin_center > P0 > > > > P1 > | a | b | > | c | d | > #+end_center > > Now, org-element-at-point (correctly) returns (table-row (...)). I'm not sure to understand your report, but `org-element-at-point' should return a `table' element at the very beginning of a table (here at the beginning of the first row), not a `table-row'. Regards, -- Nicolas Goaziou