From: Felix Dorner <felix.dorner@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Get current table row data as list
Date: Wed, 5 Oct 2022 06:43:07 +0200 [thread overview]
Message-ID: <CALG+_hC5z1YjB2vMARvNZjstwvSpfc6La+u41VL2-SKnHdqtaA@mail.gmail.com> (raw)
In-Reply-To: <CALG+_hD-ARtMr8Ytt+PMPsnZw=4c7aCJ=z+EBGG0vj_MdQr+fw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
Okay I found org-table-get (line column), which is already very helpful.
On Wed, Oct 5, 2022 at 6:17 AM Felix Dorner <felix.dorner@gmail.com> wrote:
> When point is in a table, I can run (org-element-at-point) and get a
> table-row:
>
> table-row (:type standard :begin 4932 :end 5151 :contents-begin 4933
> :contents-end 5150 :post-blank 0 :post-affiliated 4932 :parent (table
> (:begin 4546 :end 6818 :type org :tblfm nil :contents-begin 4562
> :contents-end 6816 :value nil :post-blank 2 :post-affiliated 4562 :name
> secrets :parent nil))))
>
> Is there a helper or another way so that I can get the elements of that
> row as a list or do I have to extract the fields manually by walking over
> text?
>
> Thanks,
> Felix
>
>
--
Linux. The choice of a GNU generation.
[-- Attachment #2: Type: text/html, Size: 1292 bytes --]
next prev parent reply other threads:[~2022-10-05 4:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-05 4:17 Get current table row data as list Felix Dorner
2022-10-05 4:43 ` Felix Dorner [this message]
2022-10-05 5:15 ` 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=CALG+_hC5z1YjB2vMARvNZjstwvSpfc6La+u41VL2-SKnHdqtaA@mail.gmail.com \
--to=felix.dorner@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).