From: Ihor Radchenko <yantar92@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Fix test-org-element/cache
Date: Sat, 15 May 2021 20:21:30 +0800 [thread overview]
Message-ID: <87zgwwmblh.fsf@localhost> (raw)
In-Reply-To: <87o8dcryoc.fsf@nicolasgoaziou.fr>
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
next prev parent reply other threads:[~2021-05-15 12:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-15 11:38 [PATCH] Fix test-org-element/cache Ihor Radchenko
2021-05-15 11:51 ` Bastien
2021-05-15 12:31 ` Ihor Radchenko
2021-05-15 12:34 ` Bastien
2021-05-15 12:04 ` Nicolas Goaziou
2021-05-15 12:21 ` Ihor Radchenko [this message]
2021-05-15 12:33 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgwwmblh.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).