emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix test-org-element/cache


From: Ihor Radchenko
Subject: Re: [PATCH] Fix test-org-element/cache
Date: Sat, 15 May 2021 20:21:30 +0800

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> 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'.

Sorry, I was probably not very clear. The test does the following:

1. Create initial file like:

#+begin_center
P0



  P1
  | a | b |
<point>| c | d |
#+end_center

Note that second line of the table is not indented.
Now, org-element-at-point returns table-row.

2. Modify the file to test org-element-cache

#+begin_center
P0

- item

  P1
  | a | b |
<point>| c | d |
#+end_center

Now, the first (indented) row of the table belongs to item.  The second
row becomes individual table and org-element-at-point returns table.

The patch asserted that org-element-at-point still returned a table row.

Best,
Ihor



reply via email to

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