From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4PQqMs4oNmZBTAEAqHPOHw:P1 (envelope-from ) for ; Sat, 04 May 2024 14:23:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4PQqMs4oNmZBTAEAqHPOHw (envelope-from ) for ; Sat, 04 May 2024 14:23:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eZerNIwO; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1714825422; a=rsa-sha256; cv=none; b=eF7I5T/dBOFcymtaQbPXOpzEpzkKYzqLFQzKDkWWxIcA/qkOAYwScECjm3o/WLDgSii6Dh EDJJ4NMoF4QjRrioZmJk3g0+9bbaJIvBKlhGoy8ZjdAMjxgBnLbB1LtsMuLPmOFl3iTrLf 3xGB8o0fpf1MEl6i2zGUFp1H32eoIr0WMzWw7aoB8H9Z8004V8/stLw/n0a9mJbIYTVxVI YQ5oLfhYS72GzJsFsts40iaIVhw8YpKvKScaXPZwCzDr47QSfrWQmIEEZUa5MCdkn8R19S KrR0ce6RM1VgEcOuXicv5J2tv/PKDuE0Lf6QZtKsj9q/i01RuJ/8tdID4F6JBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eZerNIwO; dmarc=pass (policy=none) header.from=posteo.net; 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=1714825422; 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=c4C9gRP4sDDZVZtoEkI/SIquAosOsRR2ijRdwUcFt8I=; b=JPOrkHpnhXCEUhtlfTheWjhf0etAD1DGSwTU4s6sZ77TmtisJg+ELkOPtJT/kGwBOz1BvL u2BDPRvnc2w6WGqrvFkVsFyJBnBf/f4IU7/2QCE+IF3onXAbAXNahh/6V67elouMgMR5x6 1ED62UY2qKSsyEOF6hsocoWDx5LBxL3740sujpSa2upUUZP98Jz393XbokSqb3AT3v6CdQ NlkE4/QzsT1uGuIRM/HKGRcQ9IvNC32UFfsIK2WkKzFGSWSGN94qu5dHQEbYVjfQwM2uA4 tN2D6PT4RjABhwh87561+aLaNHFH+hKGRZV1WCVJQXe82nd2PDvbIgEBjiEZDw== 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 9D68D36CD0 for ; Sat, 4 May 2024 14:23:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3EQ1-0006bQ-Mk; Sat, 04 May 2024 08:23:11 -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 1s3EPx-0006ae-OB for emacs-orgmode@gnu.org; Sat, 04 May 2024 08:23:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3EPu-0006gZ-Nc for emacs-orgmode@gnu.org; Sat, 04 May 2024 08:23:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 399E9240101 for ; Sat, 4 May 2024 14:23:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714825380; bh=Vfz3jQMho7X7jOeTGZ/Xk+g6E2TRGc1OvebfWnznEzA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eZerNIwOMKs3zj6D/Rj8MqR6XH+Un1s7Ruc66FKpq1LgiSws9gqNPTuCJJ7+5K3Tx 9XZF+h12Mo6cLcUws4Pl26v1LegWeP6A6+qXT6GPd60BGfEVfXA0D8BL6Sg02Azl/y JbcVCqhC6aZ1Zot237IIrod1hLbR/za/pUvlEzh9WHduDihQUHFHagfBo99ovD3fPp orwaQc52yJrxbcgm9s8Dj/ggf3DFdZUv3TzGsxX6UmMWkOKhtPQLFGptMpjLl2tZsk KJ3aI0HtbmizZjWT4VA3eATVVKEQUY3v8kMDWUTBsxLgyEDs+T+Mebm8ce69c6+Mop EfqSrcMqKsCrA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VWmz72g8Tz6tvq; Sat, 4 May 2024 14:22:59 +0200 (CEST) From: Ihor Radchenko To: Pedro Andres Aranda Gutierrez Cc: Org List Subject: Re: [PATCH] copy cell contents to kill-ring. WAS [FR]: thing-at-point 'org-table-cell In-Reply-To: References: <3D2609D7-9E7A-435E-B42E-BE5DC0057D41@gmail.com> <87y18qekrs.fsf@localhost> Date: Sat, 04 May 2024 12:24:18 +0000 Message-ID: <871q6hydcd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9D68D36CD0 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.12 X-Spam-Score: -5.12 X-TUID: rUJApu71pgnL Pedro Andres Aranda Gutierrez writes: > 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. > ... > +(defun org-table-copy-cell-as-kill (verbose) > + "Copy the contents of the current cell to the kill buffer. > +Print a message when verbose is not nil. > + > +hlines are not considered table cells" Org mode already has a command that copies cell contents - `org-table-copy-region'. That command has a problem though - it uses a kludge with dynamic variable instead of copying to the kill ring. I think that we can modify `org-table-copy-region' to copy to the kill ring, adding text properties with cell info as metadata. Then, `org-table-paste-rectangle' can check for these text properties instead of relying upon `org-table-clip'. Would you be willing to work on such refactoring? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at