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 ms5.migadu.com with LMTPS id QHN6E8oYyWOFHgEAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 11:17:46 +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 sJZ+EsoYyWN+5wAAG6o9tA (envelope-from ) for ; Thu, 19 Jan 2023 11:17:46 +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 F25A12D6F3 for ; Thu, 19 Jan 2023 11:17:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIRSw-0002kc-0o; Thu, 19 Jan 2023 04:44:15 -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 1pIRSq-0002kL-JZ for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 04:44:08 -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 1pIRSo-0001I3-0s for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 04:44:07 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 420D72405E2 for ; Thu, 19 Jan 2023 10:44:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674121443; bh=5YXCpNQDcKvFJYIyrvOzEKxtHe+3H0IZH9roVCBfG1A=; h=From:To:Cc:Subject:Date:From; b=LQiDxvxtJyiXerhGwEHh9hS2sCTpCWusESCwUJ4apoPhIXvg7mQBlzVN0fNyki6DR lROygVg6MyMwTtsFvN7UIzUCHy+MdV50eMFLMQwjnwS7tsDSes/zRbfNY37sWIT5x6 CI3goQ7HSNbprPn5NAK9dTJRJ2pCodB6Inh3GI1pE1ENxtpyK5YKc8PPSJkSKETVYB hNfu21Av6Z0b2H4M4pRE89aIxp/nR5fVHBHViK2d6xyQ8bu//c9p01vwijniew+JzB AYFGD2MfeOMFm7HrhpLP+F1aLC2iBTmTZvudHHpE3Cw8NI4rCKZ/xaD1XwxMOFIBU0 F8QVkn/SpOusA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NyHl36gGTz6tmV; Thu, 19 Jan 2023 10:43:59 +0100 (CET) From: Ihor Radchenko To: Philipp Kiefer Cc: emacs-orgmode@gnu.org Subject: Re: Make org-paste-subtree more predictable and useful In-Reply-To: <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> References: <87r0vs8e02.fsf@localhost> <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> Date: Thu, 19 Jan 2023 09:44:30 +0000 Message-ID: <87k01i6ept.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674123466; a=rsa-sha256; cv=none; b=cPMIZzsCm15p0xwT/w/j+/x1GILjOZHjp4w0TO8mixNPa1fJgec6dv+cM65pFL9u8XciHA ala66ZIdLjfp1dHYYPPwiJ93+YkjgMhOcnC4IXb/v3+yUwzJFSGB5DY6AFiYoGx5SlQvEo 1TIWjKcjg/HePvVCuE65Zv72HH9ojxKwHGHsxPmIuP5sT0xaNpyCEn3hn6PhOeFRBAfTdT w8sO6D9LHE8IESjaLtf4K00zJYFrix72fvMJeK6/1IyqK8ZF33a3E+gfQoXGlORYPM5ige sTy7aEkAkfx2JcXitlN/2IMfbVMbq2rF+CtxXa0a2mZb43XS/dAr8Q1J2u6Tsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LQiDxvxt; 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=1674123466; 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=9RO8Ugy9K5oEAF2R44R4HZZmRVktxoe6oYAOfsefX80=; b=u9u11mOgeGWBjgYNf+wDskBwjPOCvEmHwikFpjAR6rmX1oHON4pC5WFpCVkNhxaZKx/2Pe pvigDTSeN+CE50fouxdniJlVLN8Gu86Z2dhINZNwU6ZNP4O2fUYrBdo1d9gfmRr97FqR8D gyI+a+EuvEqfaGBgGKsZKls68WQpGuY7NPT69cEzbdMyLa89S3pgzrwnuK4h7IIOipgKri eDT7vkpY4webKUar1WwaB5By1nMAtbfjUh65DEgWGDrBNUTyyNwCBaMxcTvAFxI0+EQnku qBuEAQ9I3jL4r2gGoShmiHfr3HfD+BA4lOBEP6ifyXWbnJXJmu1cDQCkOwPzSQ== X-Spam-Score: -7.68 X-Migadu-Queue-Id: F25A12D6F3 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LQiDxvxt; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.68 X-TUID: TjXFOBnoQiwm Philipp Kiefer writes: > Thanks for addressing my concern, Ihor. > > So I can force same-level yank by navigating to the beginning of the > current headline before calling org-paste-subtree, I see. However, I > still do not see a way to force it to paste one level below the current > headline, i. e. to add the trees on the clipboard as child-subtrees or > the current heading. > > My best bet currently is probably to create a blank child heading, add > some text (there seems to be a glitch turning the blank heading into an > empty line when pasting with point on the blank dummy heading when it > has no text), go back to the beginning of the line, then paste the > subtrees at the level of the dummy heading, navigate back to the dummy > heading and delete it. I'd really rather not have to do all that to > achieve my simple goal of pasting subtrees at child level. Just paste the subtree and press C-S- to demote it immediately. It would not save you many keystrokes if there was yet another prefix argument. > As for the claim that the current procedure "makes sure that the subtree > remains an independent subtree and does not swallow low level entries.", > either I don't understand it or it isn't true. If I have a level 2 > heading below which is a level 5 heading and I paste subtrees with point > on the level 2 heading, the level 5 heading is subsumed under the last > subtree yanked from the clipboard in all cases. Sorry, but I cannot reproduce. Could you please provide detailed instructions about what you did? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at