From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ADdRLIkLPWP0QgEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 06:43:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eB1SLIkLPWPv6wAA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 06:43:53 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 42AC0B7B3 for ; Wed, 5 Oct 2022 06:43:53 +0200 (CEST) Received: from localhost ([::1]:38894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofwG8-0000u5-DE for larch@yhetil.org; Wed, 05 Oct 2022 00:43:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofwFe-0000tu-Lr for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 00:43:22 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:55053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofwFc-0008UY-Tn for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 00:43:22 -0400 Received: by mail-pj1-x1035.google.com with SMTP id 70so14623663pjo.4 for ; Tue, 04 Oct 2022 21:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=cdQeQ4xNRs7xjGWPo3UqEY5ehdDLS+hYHbzJgThKgAM=; b=Vy5xyL0ifN+njFDPlONSy52vLInuYLsjcEUzCwuwy3IvrM73ZBc0eY12QPOt+hGdQ3 +t7vFk+eeAwKA06jW1nwIT7ZbJhOX3dfOBpx3H4f43q2j2SUC5w1eYgtWI86gwH3z7ZS Lxm3wlV4/4MilddsM077iNDotsDkcwOP0/40iEKD/FF+bskT7n/dD1ym5PHeuX7dJg+9 IGHq0Wsl97KttInL5w3+Wk38m2rT+l2UUAncXAaP5ePL2Vz4YwF/P/QJZodPhJOtdWU6 ZWbES34O4vbEsEjyhrTcFmPQxe8KLAE05WDtON7sPnsQDrpz5nch7gyUFj6rewowUwAf MNyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=cdQeQ4xNRs7xjGWPo3UqEY5ehdDLS+hYHbzJgThKgAM=; b=IMaowQWylt8QZgGLxwLFREfeB8NNeQW12zRW3JqKJweN5YwqL46RUyi/KcxmAAQiqC zjc0ruta1kUFdLSzUpOAfdnJlQWo3aRFleqV0aPHNfeB/6mGovQOeMvuHmJzFu4+IJdY 4Ey3wOrjEIOqgHAZzirwMOLUTy9oxcwknMIShBno6ShVUCBcZifZVraqArm9wLRdhznS 2nKXQdIr5XSJzqLNjTYO2eujOEdxPsIRiY3+jsV9E68zTKIvviLjeMHgGC5XWbq4bOMa 0AHTNn4poo7TktTyOgxdXck7fJRy7CTqrEm21YHwcw1QIH9iyut2csgFhIlx1kskTg1w J+xw== X-Gm-Message-State: ACrzQf021exdVyOdHG9gJmsnzICRD+E5P0koX+VR+l+8siW9vzgyYi9Z BZiLAsLH61fOJHsRsSgEconJuBIIm4Spqj6KRP5F5KmU/PQ= X-Google-Smtp-Source: AMsMyM5GvxD/hg+xwLIyVfixEScYqITeTPAVKvSiMDjbWM5w1wVpmLz7o08yWDg3n3mKiwDqSS5DSImN/ZGdr1TCfoM= X-Received: by 2002:a17:90b:1d01:b0:203:2bda:abb1 with SMTP id on1-20020a17090b1d0100b002032bdaabb1mr3111609pjb.204.1664944999060; Tue, 04 Oct 2022 21:43:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Felix Dorner Date: Wed, 5 Oct 2022 06:43:07 +0200 Message-ID: Subject: Re: Get current table row data as list To: Org Mode List Content-Type: multipart/alternative; boundary="0000000000003d591005ea423727" Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=felix.dorner@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664945033; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cdQeQ4xNRs7xjGWPo3UqEY5ehdDLS+hYHbzJgThKgAM=; b=LXr1XxGOpk8f4N41kXarDAKpzhfyMUQpN8AKjAMEgPDNjqhzVfjderTv7uMRO+PhbDHJ20 KzmPuSlkDdBC40NOMoY4HW83nGeAbeEsh7gaw7suFuWcoTcfzdjPe/BeFmazbMs+7Xt28j 8pEKZPQP+nnUf2q+Pr/FWF97xsTV3ZAOKVUamuc7BBujNepdNSQKNMh9754tWiHclkoRHu IIlJnr+/TeaRtCUi2gnpAKuz1KzVWMmCh1nWPQzY0h/QaCpnqscUoPjPhKOFtpuFcCFvqt HJoKUyH7zzypCoEpQd3HCHgZND67fZmEG+ySVKPeY+ptm3b7uej7A/bxMMSsIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664945033; a=rsa-sha256; cv=none; b=pQgDnds12IvqZr368YgnBWi+rDm+YbyiJzEKM536XALF1SdOccqQD+dsvWVp92tYLaonND igzjC34D1sysbBdggK1rf8B55v3ts+8izVh5Vrp6quraMvnlPPZ8Hpf7cmm7Y2Fl5vN9U4 4OO47nxZVvJtW5cwYacAMTsCYuXrSJCcE6xDBQCmL+LovVAlEcN1LBofhfMabsJ8HVDefy 0OZTFL6lV4jWJgpnOlo2cQ8RxdBjwwhFH3IgcIpvkqWnsJq3D3XtFe0ECjkXA2bvobvtPJ bTdSZQR4XYqL3PBMijStY844nNPlmjQjAEEsuCHkn7ogeSQsT7KDU+qgaEyf1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vy5xyL0i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vy5xyL0i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 42AC0B7B3 X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: vn3eIrNBVEj8 --0000000000003d591005ea423727 Content-Type: text/plain; charset="UTF-8" Okay I found org-table-get (line column), which is already very helpful. On Wed, Oct 5, 2022 at 6:17 AM Felix Dorner 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. --0000000000003d591005ea423727 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Okay I found=C2=A0org-table-get (line column), which is al= ready 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 c= an run (org-element-at-point) and get a table-row:

table-row (:type standard :begin 4932 :end 5151 :contents-begin 4933 :cont= ents-end 5150 :post-blank 0 :post-affiliated 4932 :parent (table (:begin 45= 46 :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 t= hat I can get the elements of that row as a list or do I have to extract th= e fields manually by walking over text?

Thanks,
Felix



--
Linux. The choice of a GNU generation.
--0000000000003d591005ea423727--