From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cK33JutuymOYKwEAbAwnHQ (envelope-from ) for ; Fri, 20 Jan 2023 11:37:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wGzPJutuymOmGAAAauVa8A (envelope-from ) for ; Fri, 20 Jan 2023 11:37:31 +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 3CB2341161 for ; Fri, 20 Jan 2023 11:37:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIolf-0000tt-UP; Fri, 20 Jan 2023 05:37:08 -0500 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 1pIolc-0000sq-76 for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:37:04 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIola-0003CI-Ax for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:37:03 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5C27C2405B3 for ; Fri, 20 Jan 2023 11:37:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674211020; bh=4NnxrTvRMAQnXXZer8z0i5RVqlq+Z1lem+PE/1pD1+A=; h=From:To:Cc:Subject:Date:From; b=LnOe2EsnJbE0vs5v/7anyv6W8SVYGIU2HUdFyf4LESzfS0kftrTL1k7MvNu/99v2D 2q7yRpYLI9xO0W2PCi3VNu8JURoQJUiUITCk5BlWX1GzcEFJCbqg4GcEHLiXBR6FRS mFMnmva+lPcg8iPzBOlwgT5zflybBPZ7d4c2W4d/BKe/lRq1TZKHbGgL5+0gmPJjOV hiaSaX1xSATCC8qD0m27xBVz3Sbb0ue9SVfzcDrIr2vMccq3PdoEgSweJpe8FffX6t B9eMHVvJoSrHG6R0nVpqdLIxWEy2N/+HDDtKf1xgpu+/XmP0yXEp9got8KuHJ3YMzK sl0+S3CXLsTAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nywsl2jqMz6tmP; Fri, 20 Jan 2023 11:36:59 +0100 (CET) From: Ihor Radchenko To: Philipp Kiefer Cc: emacs-orgmode@gnu.org Subject: Re: [FEATURE REQUEST] Make org-copy-subtree and org-cut-subtree work on an active region In-Reply-To: References: Date: Fri, 20 Jan 2023 10:37:28 +0000 Message-ID: <871qnptrtj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674211051; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4NnxrTvRMAQnXXZer8z0i5RVqlq+Z1lem+PE/1pD1+A=; b=loTkfaRYre3a5vPyMhmxv4CxIaMhQS5jM4m4vk0aeQZer9vbbBZzZbwrTPfaAzRWwmI3Jh 9ErUtUerKd4aWGmGxC3RFoGu0/RYQWP1BuoPhXuFlJsRpz1g9bUJowjp+jyn2rbhCD/Y4z Z9OshJEY3xcpqGG0DXJ6VaWbv/pN9POLj1Dt2whwZqrOfjdoSoM7bOxbLN3BqAJhVmjtPO Yyr3ls19H+6VBduqkA04qwLta4bMvk58qpTuQiSdCj3iuHy+A/rdQp1+2J2IoC02GYytrv JxNN2r11rfXV9esJvo1TbJu0VUA4GCXHdnek2SuISeNL+FYm+6mHIcvqD2fjKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LnOe2Esn; 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=1674211051; a=rsa-sha256; cv=none; b=Hs/1flfd3QPZIE6g85nSf9yedeUL5NJwHpBU856tZiwucps7Oqzvpw9O1OzojKoxhBtaPy Obf6HaPbAQ3NFe7X0ZhhVJZxsres/+Y+PcjJCeXXyLa1g9pH7aO29+E1lxSC/58WhvsjDn f4gBqV6QGXAHs3vfCnzf2jNPcYJaA530hYeAXj2vZAj7imaSONxBBSGOMAR4gOoItbEoDX yzO2t+US566xoAStuJwfr+d/a9TlMV14bCCddtgjKd1eoGW+Io6WB9IRIkmKgXZjQeiaBp UIRRoyzAGl7dXJ6g37KOo37gB3bo4sCTm4ZTiFtjg5/dbfsjuHU1cVFLS+OFPA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.57 X-Spam-Score: -4.57 X-Migadu-Queue-Id: 3CB2341161 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LnOe2Esn; 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" X-TUID: uy/JypkIGIyY Philipp Kiefer writes: > When calling either org-copy-subtree or org-cut-subtree, check if there=20 > is an active region that starts on a headline and contains at least one=20 > more headline of the same level. If so, copy / cut all the subtrees=20 > touched by the region. This saves the user having to count the subtrees=20 > he / she wants to operate on in order to use the number as a prefix=20 > argument for the command. This change=C2=A0 would make the process easier= and=20 > provide visual feedback. +1 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at