From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QD5QGKJH6WH3eAAAgWs5BA (envelope-from ) for ; Thu, 20 Jan 2022 12:29:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4F/6EKJH6WFTzgAAG6o9tA (envelope-from ) for ; Thu, 20 Jan 2022 12:29:38 +0100 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 EB01529FF5 for ; Thu, 20 Jan 2022 12:29:37 +0100 (CET) Received: from localhost ([::1]:34586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAVdI-0001eX-HS for larch@yhetil.org; Thu, 20 Jan 2022 06:29:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAUgB-0008Ba-Kg for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 05:28:32 -0500 Received: from [2a00:1450:4864:20::333] (port=42818 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAUg9-0003Rm-Fe for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 05:28:31 -0500 Received: by mail-wm1-x333.google.com with SMTP id f202-20020a1c1fd3000000b0034dd403f4fbso9258486wmf.1 for ; Thu, 20 Jan 2022 02:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=I2RTldaPlWLhj+jnyg3QghSmBkbcGe77NhV/ysqUpEI=; b=V6YNOCHhSpieC+7XMgyhNOv+8ex6uIfp8io+1njnfvCUtK9GABej62okhDZ947SyeH Icn5i9Qbe5NpMXwUfgTefTlaKW+o3497JNACN3ck32UaTCjqIk7GOJzmxEjZ4MJ3bybF OwB7tPz9c3ksEfwyPcM2IdoQJ3rFUYx7jQAu1Y/wprhDtyVrH4c//lvn0V68kuds7Brt 27BJRFCSqeRv+RYaKdFrE2tP2AHDKWP0iwl7rwhz/yt2l+F6wnUOtionrMfty8i5R7fX yNH7qfVc5S7GbWXgcrx+qrgmO4nFL5IjpdLytvVYTS1expfesanpVNujaOiBQpoGH9MM tvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=I2RTldaPlWLhj+jnyg3QghSmBkbcGe77NhV/ysqUpEI=; b=HtwsrhfJREii/qFBKpGBysrDpELy2I/QR5sG5HOEzXID4nqJfbVA7HdMQTSzcj048B /nHefAkQWRXh0b5RcCl0iRy1Pw1VcoEh5osHG+Lqtl7KiY2/fn09Pvch4O6HkfUA3nNC pvQVAmYw6s9bXtXRUmHLU+T3K56xy08oO7eGR54d7tWik1e34YlCkszZBM2m5EqHUx6t /yVhi1WclnqgX3kXuMdvsxOOD9jU7lxVHPJjq/olrCAQ72HNLAdbxMYIedqegYDrTEev gRdUnuPAeMw+jzZyrxD/SjhVzpVBOBdnk5LA9iLCTLG6wGEK9XWs9cGMdUtJS5hYeCec 254Q== X-Gm-Message-State: AOAM532QigdDErd/1ZwjcGDT0u6QI4eXgaPX7cNl596dVRLPuEVEeFV3 SBe03iu9qvWVZq17nioAw1c= X-Google-Smtp-Source: ABdhPJwivunZBLA3zGoHkBoGlC0IEqXz81UvdAktfGwJS0+Qwu6KDSv8wyY3VrWc9ruGh4pZWf7TjA== X-Received: by 2002:a05:600c:2503:: with SMTP id d3mr1317321wma.76.1642674506864; Thu, 20 Jan 2022 02:28:26 -0800 (PST) Received: from aspire-5942 (p200300d8673ef200006012387d58a518.dip0.t-ipconnect.de. [2003:d8:673e:f200:60:1238:7d58:a518]) by smtp.gmail.com with ESMTPSA id g30sm2588569wrb.29.2022.01.20.02.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 02:28:26 -0800 (PST) From: Marco Wahl To: emacs-orgmode@gnu.org, oub@mat.ucm.es Subject: Re: how to copy a column of a table (with content) References: <87o8464yqs.fsf@mat.ucm.es> Date: Thu, 20 Jan 2022 11:28:13 +0100 In-Reply-To: <87o8464yqs.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 20 Jan 2022 09:06:51 +0100") Message-ID: <87r192n1ky.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=marcowahlsoft@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1642678178; 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=I2RTldaPlWLhj+jnyg3QghSmBkbcGe77NhV/ysqUpEI=; b=ondLzwhVW0LIenrPCZ4hSBJZZgwpjw0y75mmkVqGV+wD62YQFaD1RnvFHWfMsJ0lDpi0zw fnvbakdBx9MoECyI4jfKJLKHnGryHiYQqLAmrw/3ixVlC9tNil8TwFTqSLjcJes+tjKlHG UI3u192QtKr13OArk8IWsZ/Z4QXbQvk5c/TFV5t0ea4F9karXzDKvcZvbMhWUdRREBholq yLfC1O5z2wdXiLuVGc9FZ8VVGewnWTI77vsFoTMopOfMbVWxLAIQCFNv60XW06MmqOOFi7 qW9W6N12k4rjekl6j7iuwLOhufeKGUA8sh+39RPc1mnG+qXuiNlT2IFeHfSY+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642678178; a=rsa-sha256; cv=none; b=IF8weOdN9YP4xJ/NmoypOZiOfAXy/nOe0EUyFbiEPY+lHnW9btgUB8CF1bCSGp3Vvn5ito WGfp4DLnHs7Frg8OrBYcMz93KVXovKfE8JyvbeODLliRrFd7PiabP0rB0291ctFNY3bR+S YikVDZ3GL1mhaWfXlpa2C+MzVWULjjyeycFb/P0OZZZEnpQpI/g6hXuT2nY7arJFTP7OFg U67SVgYnptPErj9R9Ofsy8TW0IkQOlJ3mSJ8CRWcSbWn6J71H/MPuyNc2BTzhPTgwzhuDL yksWFXvh4Cslpu7NDFccdujtJ4G2nVbKsxfl3LyCcpNB7xvd4je4XAyZIqRpfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=V6YNOCHh; 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: -6.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=V6YNOCHh; 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: EB01529FF5 X-Spam-Score: -6.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 039FAsnSRGMD Uwe Brauer writes: > I sometime have to deal with table that contains large columns and I > want to copy that columns and modify them a bit. > > So I usually just insert an empty column and use kill-rectangle and yank-rectangle. > > I am wondering, there seems no > org-table-kill-this-column and org-table-yank-this-column. > > I found > > https://emacs.stackexchange.com/questions/28270/how-to-select-and-copy-a-column-of-an-org-table-without-rectangle-selection#:~:text=Just%20mark%20the%20beginning%20of,table%2Dpaste%2Drectangle%20). > > But it did not work for me. > > Any ideas? I use the following function occasionally. Possibly it helps in your case. (defun mw-org-table-mark-column () "Mark the column containing point." (interactive) (unless (org-at-table-p) (user-error "Not at a table")) (org-table-find-dataline) (org-table-check-inside-data-field) (let* ((col (org-table-current-column)) (beg (org-table-begin)) (end (org-table-end))) (goto-char beg) (org-table-goto-column col) (re-search-backward "|" nil t) (push-mark) (goto-char (1- end)) (org-table-goto-column (1+ col)) (re-search-backward "|" nil t) (exchange-point-and-mark) (forward-char))) Copy a column would be: 1. Put the cursor into that column. 2. M-x mw-org-table-mark-column 3. Move the cursor onto the |. E.g. { C-b }. 4. M-x copy-rectangle-as-kill 5. Move the cursor to a suitable position in the first line of the table. 6. M-x yank-rectangle BTW rectangle-mark-mode -- possibly activated with { C-x SPC } -- can help with the copy and yank in this case. HTH, -- Marco