From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 6Kn2A6/ByWP29QAAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 23:18:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QBYuA6/ByWNGegEAG6o9tA (envelope-from ) for ; Thu, 19 Jan 2023 23:18:23 +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 B7D92B014 for ; Thu, 19 Jan 2023 23:18:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIdE8-0008JN-Gr; Thu, 19 Jan 2023 17:17:44 -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 1pIdE6-0008HC-VL for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 17:17:42 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIdE5-0000iY-5X for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 17:17:42 -0500 Received: by mail-ej1-x629.google.com with SMTP id rl14so6147935ejb.2 for ; Thu, 19 Jan 2023 14:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=vg8r/Qyq0Zm6UsHfWyBQVG5s51EnjX4I5p9NiNrnFVU=; b=TKkoEQu3zVWmrY3UzsZKFDFAFYwuWg9v69xYIxOG6nv+iAnPVRHWRodFIkcCo6wY/l oAGmBNPY446YQowWEbhHy62q+8/fgRNstiLsWCHRjilUZG8kStzxUeCq3nkz8D1/3wcI PekD1bXcMIEcnXLKGFG7NSLkd+Jn5Ko/dEJjpPC+4Rgh81YOcUpp6jAx7GUaxfX631dd /jETEsLLrzHTWVJK0G7eTs5xedKPoBsbmwc6dz+0zu4AsTfL5/Ak9pUQ8kqGfAV7FLVg vdPByJ0QXbZQV5/dGEMNbFIFvQHUw/sVsQSz29OkUlIrcldPA9/EHf2TtUKTz89kcH5R UVgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vg8r/Qyq0Zm6UsHfWyBQVG5s51EnjX4I5p9NiNrnFVU=; b=z8N+j6NaBwSR2TFSAhKTFDlhgBdyVzedWT82Z+cHKsYZTQO2+/FDTR67khSV9/7ZUC 4sqkr88YQ20XfJwZd17raoG+4K7KN1tBG0Lx0O1lq00ewxHGpxTapw0CmTmYKBDONO8V Z8ZX5nvW5j/enZ3HL5ZmmAINo2dWOeEfQHvyYcyF4I1hi/pE7cxxY6jJni8NhTn5AO0P /8XsHPTjnctmi3raLWbQSO1MeYK51rJC1er08QEv9N/5BInNiox6T7NUR2HQ7w1TQPbP UpTZcqhleDANbzGCNV6V/6niMtHMghcigeW/+FC97hsUvyBWix778akiba5jqRRl6kxy ebgw== X-Gm-Message-State: AFqh2krIuopT3829FhyG8WJ2VxpFSDuSVZgBOmtjfxAt/vsiDLtRUVWQ ej/JfjGnzwzwDiIMnP1YItyPJ8gqk8o= X-Google-Smtp-Source: AMrXdXsB2XijafLTL7/0CTb1B/yePhV59BHj1Z5gXyUDjP1oGOBj+VP6dS3eiaqkAD2Ww1iRZfarXQ== X-Received: by 2002:a17:906:3555:b0:84d:3606:959f with SMTP id s21-20020a170906355500b0084d3606959fmr8987072eja.28.1674166659457; Thu, 19 Jan 2023 14:17:39 -0800 (PST) Received: from [192.168.178.58] (55d4713c.access.ecotel.net. [85.212.113.60]) by smtp.gmail.com with ESMTPSA id w15-20020a17090633cf00b008711cab8875sm5856968eja.216.2023.01.19.14.17.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 14:17:39 -0800 (PST) Content-Type: multipart/alternative; boundary="------------MDetfNM8wV3uycbooL5N7oI0" Message-ID: Date: Thu, 19 Jan 2023 23:17:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: emacs-orgmode@gnu.org Content-Language: de-DE From: Philipp Kiefer Subject: [FEATURE REQUEST] Make org-copy-subtree and org-cut-subtree work on an active region Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=phil.kiefer@gmail.com; helo=mail-ej1-x629.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674166702; a=rsa-sha256; cv=none; b=jhCzfmTrKkFL/tqr8SjtqvUV/UgZmgX/D0KAIrCLSIkNkax+xTLkcnC7nRiAIE0dDK1/+r 7d+V5XHv/ikryH4ttbSmuWmKcBwLn7Hzbvi8bWlLNtzNMEBt0apd4whZ5g6KHayrviYF7f /HYDPLVJteb+W2r1I08alMAEWBnHvz/gDNpBFP4ovpBNYTohyOutwfXWmFYVHV9KZyHbwk V++tZkJoef/xOXfSAZqyNZEF2HY6qxcf/qEav7uhKm8TIoj/cmKszczMZqCHxHmX2kavzh JGNhgLQ05fU90c/KvSD15dvoCHR1+eAXFNj6QtKRztQhi7UuCpqbMr8Ca34CJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TKkoEQu3; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674166702; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vg8r/Qyq0Zm6UsHfWyBQVG5s51EnjX4I5p9NiNrnFVU=; b=SwJnPIzUKvJYq1u5JDNKw+0a/ilZjj6F9yv5PvSMpoFuNFGnnN8jgm4L97FJ95RM62ka8I /OdHgZ55j4bK2WQt09jlnS0op2Omph/d3hZjhk0l9VMC3PXwJkCehmrwfpOwfglHQdA9IG GIMsE2OIoFjahymaqQT0aX+2wUmdm40QYKuw2hs84KuzvG/hcuO6i+w08oDjYFawnKpozf fKNZOQKzrl75o9cnQUtoH5EBVLsse3qinUE3v4aOAy1GUQLzjS4Fjob/honzUwCX0rp9rj Z/DZ9aWrH2cau0FhThFg+JXNo4iPqhN702vnYRHhOPUuprLIXAKMFjnMVEdSjA== X-Spam-Score: -11.59 X-Migadu-Queue-Id: B7D92B014 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TKkoEQu3; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.59 X-TUID: 2Fd/Omz8Ncx7 This is a multi-part message in MIME format. --------------MDetfNM8wV3uycbooL5N7oI0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit When calling either org-copy-subtree or org-cut-subtree, check if there is an active region that starts on a headline and contains at least one more headline of the same level. If so, copy / cut all the subtrees touched by the region. This saves the user having to count the subtrees he / she wants to operate on in order to use the number as a prefix argument for the command. This changeĀ  would make the process easier and provide visual feedback. Optionally require that the active region fully encloses two or more headlines and nothing else, i. e. that it begins at the start of one headline and terminates at the end of another headline. Thanks. --------------MDetfNM8wV3uycbooL5N7oI0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

When calling either org-copy-subtree or org-cut-subtree, check if there is an active region that starts on a headline and contains at least one more headline of the same level. If so, copy / cut all the subtrees touched by the region. This saves the user having to count the subtrees he / she wants to operate on in order to use the number as a prefix argument for the command. This changeĀ  would make the process easier and provide visual feedback.

Optionally require that the active region fully encloses two or more headlines and nothing else, i. e. that it begins at the start of one headline and terminates at the end of another headline.

Thanks.

--------------MDetfNM8wV3uycbooL5N7oI0--