From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id MLG6CYvgNWaV/QAA62LTzQ:P1 (envelope-from ) for ; Sat, 04 May 2024 09:15:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id MLG6CYvgNWaV/QAA62LTzQ (envelope-from ) for ; Sat, 04 May 2024 09:15:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=bK9KkPol; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714806922; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=6WxuhmX/krT5xAW7SeGKuupvFJnThXILNL7u8KU5yxI=; b=NiWrvSa1h0WY+RpYgSuFaFtKaD/1J1DfUiypXqJDRN0xZkbALX5Ls6i3wk+tpth0ipgRpn a4fYvcckvBE9YIWg1PlOxgHIyt/DymryeA1/YKjgUn9LD7KRORzlrB8RLFAcqbj8iJyqwC WrCaYyDh3A77rkBjAGM0pcr8rKNj9xIZNfADyAwa2YYo5OnZX1XcawXgMbhEN1++44eaX1 JJS0hHz7Nck+n99fYeTpBX2RecHKrsj7ohUiXBPcRjw6k728Z7w557DtwMPKo55aEWznH5 /vqrdgSs+vwR1WlW87ZfYUMhTZV4pFgBC6Y8jU0SliLu+xSQuz3mZbLyvpxhjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714806922; a=rsa-sha256; cv=none; b=H2HwMae3BKU4AvCAtIS+7unqyzqFBD0Kfn3TxSRB5PL6bhcD4z/yjQQgqJb3Ocb7QxqpFo HvQ5yH3GcZIbmtYttpxpYp/z0ULvqiehjTVKBHqRMG6fE3+7k4r9Szg2jGtjjx4nzkRGpK lrzK3N9SMzDLK8WSXsVM65gK2E4l/4RSopxbhICC8kO8fWtBT/rJXxwGX9hCn1MCE6mAaC dkZJoHyAXFLyA0jjWU8CXNhtWHP9KqM2aGle5wSyOCFPq+FWDKgPzfGdB+z/6A9hE9HLs6 sOTTasuEvNTtF3bxXnO32ixMg1TyIS0afoO+jRBBZGM1dZjp6VpIJP8ao3++9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=bK9KkPol; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" 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 BF12D672BD for ; Sat, 04 May 2024 09:15:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s39bV-0002KA-GV; Sat, 04 May 2024 03:14:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s39bT-0002Jx-KQ for emacs-orgmode@gnu.org; Sat, 04 May 2024 03:14:39 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s39bP-0002rD-Bn for emacs-orgmode@gnu.org; Sat, 04 May 2024 03:14:39 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a598c8661f0so69505066b.0 for ; Sat, 04 May 2024 00:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714806873; x=1715411673; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zUysO5XiyZWgrSwPeBEQRXLZ4iPtkmbSW885U9TvDVA=; b=bK9KkPolhMdBpL1NJozb0j2l7ibrgO7Z5qCvyXt/DoH4c9o5ojtx5grZop/UfKuTLJ JbZVtE7S0K7d2TBrWFjwTnIvFeVonWizbYuMG6ewAzSEER3lCx8S3EdSql/eQeQg46HJ cmqLQ77uL88g9ESSnvVZJElNu5YR2a1LmTlsYIs/3nmn27LmgeMbeuhj6N2FtJd2PVpa xVS6QS3+Ul7kwT88sZ3JX8mR2rSoOAsOqe+qIaoa4j44x+KOBXMwjzKRKB271flR+h2y X2j5/tU79nXOMYTeWxSgJU+D2caIPcOEfMnvlUbs5sn5fqehkF4K3w+PbIDd7AjbRZXj Y/vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714806873; x=1715411673; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zUysO5XiyZWgrSwPeBEQRXLZ4iPtkmbSW885U9TvDVA=; b=UKFWBRfjVR8QGltezKP0EdrtB9mlY9sSq9Do8ajyWVVV8kYd/nD6EeUAzjQQg4xG68 Iz6sY8HS2tn83Uaqm5pl096erMt4ObUPNQo6cl/ODxVOpes9VNy+7pt8g6dJTfiIDWR8 TDdD2gecLT7a9kSZFKkYnntQoymMzRLVZ0qoEcAWLl/BK+7kOR7zbqmpyDXGtoDwEzRs B9v2+HQJ7G2OlmTigTY0b6AisO3LtMlagkbDpUDnUolFD9sjPK/YZrYlKnDmph00F/F/ QKnFvX/m3yfqCLWbH6iXptWKnuPThXugpEkPox5njgecl7AduEtt0jqZ9TNMOTCni3Bw 5USg== X-Gm-Message-State: AOJu0YyuGcdMMwkMUCbuMbMlYz/EA5AiUSSrKkUJ3arWTzw+tk9dDTk9 iBkQYCe138T4D7y+JyqMWgYE0JfuhGIbNC3tnNrg73K/msZwpqMES8myGCzsCEmNMS3z43V3ZNa XWHjkN6Kerjd3By7kZv5f7Jhi6UU= X-Google-Smtp-Source: AGHT+IHfvdlyFBgA0ikRtUuETDoNtc8/lYlZSQl52lPPU0PyKnvte+xpjiuL+40DSD3mzyYt1NGcUj/4Wrw8V8VMwIg= X-Received: by 2002:a50:9ea9:0:b0:572:65d3:8084 with SMTP id a38-20020a509ea9000000b0057265d38084mr3057838edf.1.1714806872851; Sat, 04 May 2024 00:14:32 -0700 (PDT) MIME-Version: 1.0 References: <3D2609D7-9E7A-435E-B42E-BE5DC0057D41@gmail.com> <87y18qekrs.fsf@localhost> In-Reply-To: <87y18qekrs.fsf@localhost> From: Pedro Andres Aranda Gutierrez Date: Sat, 4 May 2024 09:14:06 +0200 Message-ID: Subject: [PATCH] copy cell contents to kill-ring. WAS [FR]: thing-at-point 'org-table-cell To: Ihor Radchenko Cc: Org List Content-Type: multipart/mixed; boundary="000000000000840a1e06179b9672" Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=paaguti@gmail.com; helo=mail-ej1-x635.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.19 X-Spam-Score: -1.19 X-Migadu-Queue-Id: BF12D672BD X-Migadu-Scanner: mx11.migadu.com X-TUID: gR8X64Fb0Ycu --000000000000840a1e06179b9672 Content-Type: multipart/alternative; boundary="000000000000840a1c06179b9670" --000000000000840a1c06179b9670 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I needed this function to copy contents from an org spreadsheet to a Web page and I see it may be useful to others. Take a look and if you find it useful, I'll add the changelog stuff. Thanks for the guidance ;-) Best, /PA On Fri, 3 May 2024 at 21:50, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > >>> It would be great to have a thing-at-point handler that returns a cel= l > in > >>> and org table. The most simple use case is to have a table in an > org-file > >>> with data that you need to transfer to an online Web page. Being able > to > >>> (copy-as-kill ...) a cell's contents could speed up the whole > process... > >> > >> May you please elaborate on how exactly `thing-at-point' will help > copy-as-kill? > > =EF=BB=BF > > Hi Ihor, of course this was just an example. The thing-at-point would > make it easier to write a copy-as-kill-cell function. > > Then, you can just use `org-element-context' and/or `org-element-at-point= '. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --=20 Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000840a1c06179b9670 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I needed this function t= o copy contents from an org spreadsheet to a Web page and I see it may be u= seful to others. Take a look and if you find it useful, I'll add the ch= angelog stuff.

Thanks for the guidance ;-)
Best, /PA



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--000000000000840a1c06179b9670-- --000000000000840a1e06179b9672 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-org-table-add-copy-cell-contents-to-kill-ring.patch" Content-Disposition: attachment; filename="0001-org-table-add-copy-cell-contents-to-kill-ring.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lvrrmerr0 RnJvbSA1NDVmNmUyNmJhNGZhMjlmZWRiYjM4Y2NjMjZlNjAxODc3NGFlNjNlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiAiUGVkcm8gQS4gQXJhbmRhIiA8cGFhZ3V0aUBnbWFpbC5jb20+ CkRhdGU6IFNhdCwgNCBNYXkgMjAyNCAwOTowOTo0MyArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIG9y Zy10YWJsZTogYWRkIGNvcHkgY2VsbCBjb250ZW50cyB0byBraWxsIHJpbmcKCi0tLQogZXRjL09S Ry1ORVdTICAgICAgfCAgNiArKysrKysKIGxpc3Avb3JnLXRhYmxlLmVsIHwgMjIgKysrKysrKysr KysrKysrKysrKysrKwogMiBmaWxlcyBjaGFuZ2VkLCAyOCBpbnNlcnRpb25zKCspCgpkaWZmIC0t Z2l0IGEvZXRjL09SRy1ORVdTIGIvZXRjL09SRy1ORVdTCmluZGV4IDk5ZGQ4ODM5Yy4uYjRjYWNi MmNlIDEwMDY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ICAgICAgKG1lc3NhZ2UgIkNv cGllZCBgJXMnIiBjZWxsLXZhbCkpCisgICAgICAoa2lsbC1uZXcgY2VsbC12YWwpKSkpCisKIChw cm92aWRlICdvcmctdGFibGUpCiAKIDs7IExvY2FsIHZhcmlhYmxlczoKLS0gCjIuMzQuMQoK --000000000000840a1e06179b9672--