From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sIlqLtlRImZ0CAAAqHPOHw:P1 (envelope-from ) for ; Fri, 19 Apr 2024 13:13:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sIlqLtlRImZ0CAAAqHPOHw (envelope-from ) for ; Fri, 19 Apr 2024 13:13:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OTyG9Zch; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713525209; 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=Ft7cMzNLlvv75cHlVSa9SvgbKM0qkvw6dD8DOXHCBC4=; b=I1CJJYOu1UX3/TgkD5lW8o76/SEW2EReK+0tkB6w7LGx+0CmreFi/7AEPSWlvSKWWP4PuO XKgkxcYDY5sAtZyWdNh5TytyqOJTEsaQA/HYDVpEkn1c64jemHC3xcrGuPJqeNutXcyHzx O56VpvFA3EP69JOhvK+joBdM/OE3LPDZHP4GlJgJ40/p9u2SSNEvUCvDbr1svOKYvQ4lqb qcvwz4bbIwaOs+Mj/s89wNOV4EnjGhuitLVoTLVHcAfqSoWnl+bRNRFp2p0DtLrlib5fBL fz6s5nP18ae0voM6sl/VeGh7aGblS11hXHLEAt1DXUMOH0iEUfPmGvXg1fUSIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713525209; a=rsa-sha256; cv=none; b=XlNWERRGhpl25QCjGBzwttoFIJwYND/hStGF9UrBDwG1Ozy2v2q88D3+9dNQlP93i9YuKb 8PR57DNNp2F8tACZSc2iabLLghjbH/SO6GkIsRpjo4H3yef3awDJO5iOnvk+TmtRGfnQOx ze0wqqed08/Ygm5JZ64k0lySzDbtgU0CGlakHyJ854dUhkWpZhRL1aX8Qhv2rT10MKbccW qnHj3DBW98NR8PIh7LtLf11RnYmsdkJhMnFAszPZEOWLtNUtCI99JvG9++Gfa3P7LrMTLr SQrZ7AabV0YbVaLSYPQL1O++J6qT/7LCM60msjtdzU0CTjqr1KlzLcPoWfAjeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OTyG9Zch; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 A2AC81C9BE for ; Fri, 19 Apr 2024 13:13:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxmAT-0004k9-T3; Fri, 19 Apr 2024 07:12:33 -0400 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 1rxmAQ-0004jp-QO for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 07:12:30 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxmAG-0002Z9-Py for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 07:12:26 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 42C73240103 for ; Fri, 19 Apr 2024 13:12:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713525137; bh=cZPidJu8Mk7X6EprD4j+wXrjMi49d+IEBoMayxrLvIo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=OTyG9ZchfvPTWKp7VbUvYcaQO+bfowFxq3ietmQ7O6Xr/uBeO8GDXHrDZOlWdaTX5 7Hitz7hJp9d/C2gqFmIA65XpXQJxpI+LA3i5s/ozzHbMrfWFGZUq0T0je5U33Mr/Nf kGxeMu6cpeIZc9gEBbl76lETB5c8YGNOmvU5hoTgxufC4pmjtiRff4uqJBQ/qovnn/ TxuxYviVeBobPHeEewngHPuEl20wNJuHM6b4Nry6tqu4EDrCWOO9sTpB2Cpjo2GFgY sY6Cb+d1/rXwwU1pfE+cWl975kNa9M4g9MgarOW1GkhgO6E3bilkrByO3WJHhKPJZM QxOHB/4D6s7rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VLX6S35g1z6twK; Fri, 19 Apr 2024 13:12:16 +0200 (CEST) From: Ihor Radchenko To: Philipp Kiefer Cc: emacs-orgmode@gnu.org Subject: Re: [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: <878rhxtszb.fsf@localhost> References: <87r0vs8e02.fsf@localhost> <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> <87k01i6ept.fsf@localhost> <878rhxtszb.fsf@localhost> Date: Fri, 19 Apr 2024 11:13:03 +0000 Message-ID: <877cgtehc0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 X-Migadu-Spam-Score: -8.41 X-Spam-Score: -8.41 X-Migadu-Queue-Id: A2AC81C9BE X-Migadu-Scanner: mx12.migadu.com X-TUID: 3MtVa+wG9/QB Ihor Radchenko writes: > 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. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d73688faa -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at