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 cIo2GiFpymO5pAAAbAwnHQ (envelope-from ) for ; Fri, 20 Jan 2023 11:12:49 +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 eClFGSFpymOSOAEAG6o9tA (envelope-from ) for ; Fri, 20 Jan 2023 11:12:49 +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 BE5A31CBF8 for ; Fri, 20 Jan 2023 11:12:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIoNT-0007zU-JW; Fri, 20 Jan 2023 05:12:07 -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 1pIoNO-0007wE-5O for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:12:02 -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 1pIoNL-0007Vw-L9 for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:12:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A5087240559 for ; Fri, 20 Jan 2023 11:11:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674209517; bh=NZhuffENDUD5lS4w2tb1DI1vvSoVWmLbaueLg/KDy+E=; h=From:To:Cc:Subject:Date:From; b=a/qTUGsZtaUoGHHWTa302wVcGy8EfB/F3hrPTkLcNTZr+2thtO8PxRVpTfLh5xS4V l1fB5uTMnUwwUOSdX6/sjRSFJgFgU2NYd9EixEq2gmdq1SPlP0D8TnoAUjE4SrKs1h 6iDuFflS6up0Fioxtglx85O1DaRa6KOw1gzb3h3VS553QW9f8IEaKOdmlXWlG+kJig SZQbDt4u7mPUyBuK9qHLDf4HRO38g2bVmHrvXusUU8CFyINveSY6gxym1iS0eSSWgy nPP4hWdMrzG2OrhcjoQLkDBbEqkNE4pBtxS47ClaFJHFTJLMeDMAimjBPcglpj7Cpy DKtCLi6UiBdWA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NywJq60gdz9rxQ; Fri, 20 Jan 2023 11:11:55 +0100 (CET) From: Ihor Radchenko To: Philipp Kiefer Cc: emacs-orgmode@gnu.org Subject: [BUG] org-paste-subtree level when point is in the middle of a heading (was: Make org-paste-subtree more predictable and useful) In-Reply-To: References: <87r0vs8e02.fsf@localhost> <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> <87k01i6ept.fsf@localhost> Date: Fri, 20 Jan 2023 10:12:24 +0000 Message-ID: <878rhxtszb.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674209569; 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=g8WHmEtzeGllWe+1Ip9StVlE+gP1I8SCCMEyX16lDI8=; b=ZXXF8uEweN9wucbLslZVSANitbhpvXDJo7dyoV5/csrixVCAMM1RNnp0U0AQtiCDPahQJE ed0ykRnui9nA0ZoIqXs/FxprVo8YZKxhqmIp+ZdFx1/CaV8iQA+oOSxr8QR6sDACKAMbZ4 3eSld5yhZpsc9WhfOaBQS4IoqWuq+TIZXEXwchs2hxgAEEnqFRSy0Qij7oprcDEV4eRmxS wEvpgOrK78VomtwmXE8/0hVBD10XoMpKTyNb0ac+NrAnIknvtZ68Xbta4+We7GFutG6t5F AeNhyfbCXTIGHIxvsyB+mSP0EQepXV5DCJO8c3glOOsS0J972AP3LrxUy1bDdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="a/qTUGsZ"; 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=1674209569; a=rsa-sha256; cv=none; b=rLP7d4a6JD0k9twwPBgKi0KdpbpYdfPliULd5WvLxeM7DwXyVmZ2aK1RayCqTGAXs28/wV emGRu8zJ3CW4qTQE5TIXOr6aWYOc91IE2LeHLQIk5pHuTWzpXKmV7W9mozy2DMNXKZ4dw4 EpOGX1QKyxrRzQE4hNuSd7UQz9Da4ly/WnTf04+t5ux1U09Zr1zLcEpGb7DZiJhOzlrKNG o3+E3T+idr00iN3Bpq+9DUHsl1MYfX3yg8Vw50C/BBwsnn9uphAeVjBER06Hy5+YllLkak ui7GOBvySbnIYn4VOGmwBf9zrfuUBOvbZn6IpLDin05396iVksPg8i3gxyRNvg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.57 X-Spam-Score: -4.57 X-Migadu-Queue-Id: BE5A31CBF8 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="a/qTUGsZ"; 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: hA3Aj28YCJ1d Philipp Kiefer writes: > 1. Org Mode-paste subtree low-level item swallowed: > https://imgur.com/a/CZ5lDaH . This relates to what I assume the passage > from the manual is trying to say should not happen: > > "makes sure that the subtree > remains an independent subtree and does not swallow low level entries." Confirmed. But what would be the expected behavior here? Inserting before the heading at point? After? Steps to reproduce: 1. Create a file **** 1.1.1.1 **** 1.1.1.2 * 3 ** 3.1 *** 3.1.1 ************ low-level item *** 3.1.2 *** 3.1.3 2. Copy the first two headings 3. Move point as indicated 4. M-x org-paste-subtree Observed: 1.* headings inserted after 3.1.1 and before "low-level-item", thus breaking the sub-tree. > 2. Org Mode-paste subtree on empty heading glitch: > https://imgur.com/a/AT5pDj6 . See my last message. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c92769a50 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at