[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix test-org-element/cache
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH] Fix test-org-element/cache |
Date: |
Sat, 15 May 2021 14:04:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
Ihor Radchenko <yantar92@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