From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UFx5B3Z0x2OaFQAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 05:24:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eOisBnZ0x2PQlwAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 05:24:22 +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 59D3D47315 for ; Wed, 18 Jan 2023 05:24:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHzzF-0007tn-Jg; Tue, 17 Jan 2023 23:23:45 -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 1pHsMD-0002Y8-Pj for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 15:14:57 -0500 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHsMA-0005zh-7T for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 15:14:56 -0500 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-4d4303c9de6so288167297b3.2 for ; Tue, 17 Jan 2023 12:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=v1yJssbzcuXt+sKra+JxHkIVHxYyMyll3zskFv41cvs=; b=TxrXpT/L3lMAbkrj8YU4UefE0dMGr093LRdy2GS8VVlxvaOt+dBljYaq2uNN94s6fh qnIzl/P0N5T+oaCjkDLh3xJ9XOEtP3p/AWByS0XvczzZIoKCnLg/oCTVLL/1sG1n4/+C 03b0uce+YKbI0KXRHEnBlv+yIdzFTpqvMfZcnVH/SaPWeKc6UNdofV2uEIQSLyBKznN/ KnsNLG92RwUG5ROHqBOF0onHuYQ30vIiC2Cvn/tYGlVprXjRJHoejnOBP+a7mxLxYCbc mEzciDIzkYVE2nfAbO1lNK/m6oy/jsC24NCFJfttMSlcZN8gsnBTklGZWXf2G0lR6wb8 f1Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=v1yJssbzcuXt+sKra+JxHkIVHxYyMyll3zskFv41cvs=; b=rIUaerLw6Ny7S+HPz9wTaqrhKXA2Lz5ZUNOFMtobax1uQbJQpyrUfGatDZACZhylBw eKr3iJQuU/3YmAKbrU6TXzyohVCH87tz65KrwYF404L9DXdepUqG2b4ro5O+70RAY7E2 ZZMNknH2KszLC40pJkbe8C9bWQtfIYSWXe90oBLDg9yFJcNnMzmA77wt5v7ZJPteSn+b YgkzU9O1UpqstDl3KdlFDsz7WNDVTWS4J010FP4gtOM3OfOXc+IaGokBVGz7A/bN3qpW OgTeFt8yQtKYR8CZmHS9t2gLD+WxiLHkTeWtYLL0+clCOk8v+j4prEKrl0CpQR2e2wvr o/1A== X-Gm-Message-State: AFqh2koq7qg+iz1zKS9vXlleC5GAaW0Y82+aSp5PG6osINL6fgCTK0uj nyQktgQDRS5AYrKFJejW7/RoIVU11pYpTrlPQAFBPxUpLzw= X-Google-Smtp-Source: AMrXdXvPeQcafep8uPXThS/9WObXG60zBhH+HEUvjrd2i3Nn1uGCAIDTti4CSPedfeadb5twE0xAYiFsN7k3zRpwWNs= X-Received: by 2002:a81:70d7:0:b0:4da:4e12:f6cb with SMTP id l206-20020a8170d7000000b004da4e12f6cbmr568716ywc.398.1673986490932; Tue, 17 Jan 2023 12:14:50 -0800 (PST) MIME-Version: 1.0 From: Philipp Kiefer Date: Tue, 17 Jan 2023 21:14:13 +0100 Message-ID: Subject: Make org-paste-subtree more predictable and useful To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000026ae9905f27b5ad4" Received-SPF: pass client-ip=2607:f8b0:4864:20::1133; envelope-from=phil.kiefer@gmail.com; helo=mail-yw1-x1133.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-Mailman-Approved-At: Tue, 17 Jan 2023 23:23:42 -0500 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=1674015861; a=rsa-sha256; cv=none; b=uPds8NNYnu0RNo/jXMjXCe+1Nl4qASE5+Z/cxcLAkROMGPW+gvJiGZ5JjSyPsAcTNqproQ Z6JSpqfTPZszWPylJ5ML6xdweJDb288JPFotkTfFDiAViJvp0OVh96DsqSeCLl0NesUkZj 44LDJqUW1k9WjeiM4/hO1CM62HmVXKtHe8mLKZe6G2NpAnDKhgRhJB4kOCpmdb6rn8YahW +vdQ0cUT9bUUrGa/mBqs3I2y6AS/aSmQ7hOuo18rZhgfhAfRNQSuLJ1UMxQMoIOD+vvobZ ZWEHqeMwDxLBs8FM50UXqSB3/25XK+KHVl+t2ikjzdh0wwDvDWym3hh6sTj3eA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="TxrXpT/L"; 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=1674015861; 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=v1yJssbzcuXt+sKra+JxHkIVHxYyMyll3zskFv41cvs=; b=YXRAaBDvEZS+POVrguw6fHLtzWLCyxfR2JDL5uj6mFLZsqWpH+qM7TXcNUxj0TQzj6Sjwa YIb239h7eGyaGlIxgR+PhjEudcXMv9QwI7KY2IuLNnw6tipPRbYVjqSHgR1s8C28AswcYZ ALCzoBiZx+IBNfs9hmPLPi7TRcPoNLdJNmdAV14neSbXMr41Ttxb6QtRVWMDAfadMtuo0r ysLIB4ailBwzR9RycgvFsGhiQzSMYgqF/EvY0d77xnZ7kDp8xkIi2wmJGutpx12dI5Sfmm wIV9sAyNxe1+5mwiSpdfkmF9shUcF3+IhET80jwgSIW3Pz3kjj610nPZazVqWQ== X-Spam-Score: -11.39 X-Migadu-Queue-Id: 59D3D47315 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="TxrXpT/L"; 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.39 X-TUID: Llv17NfwdwX1 --00000000000026ae9905f27b5ad4 Content-Type: text/plain; charset="UTF-8" Hello there, orgmode list, this is my first contribution here, so please be gentle with me. I've now used outlining software for the last twenty years at least and it is my belief that when a user pastes headlines into an outline, they usually want to make them either A) siblings of (i. e. paste them at the same level as) or B) children of (i. e. paste them one level below) the currently focused heading. Unfortunately, org-paste-subtree currently attempts to "modify the level of the subtree to make sure the tree fits in nicely at the yank position" [from Org Manual]. For me, this has meant unpredictable results. As far as I know, there is currently no way to use the command while making sure the result will be A) or B) as desired. The user has to wait for the command to do its "magic" and then move the headings around manually to achieve the intended result. With a numeric prefix argument or by yanking after a headline marker, the user can specify the yank level. But how likely is it that a user will yank headings to level five under a level two heading? I can solve my problem with some additional code, in which I determine the level of the heading at point and then have two functions to call for same level or child level respectively, but it strikes me as odd that this is not part of the default options. My suggestion would be to make a fundamental change to how the command works, prioritizing definite A) or B) type results over the current vague "the tree fits in nicely" approach. IMHO the default should be to yank at the same level as the focused heading. Then, if the C-u 0 numeric prefix (which currently produces an error message) were used to yank at one level below that (as subheadings of the focused heading), the functionality of the other numeric prefixes to set the yank level could be preserved. Thanks for considering! Best regards, Philipp --00000000000026ae9905f27b5ad4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello there, orgmode list, this is my first contribut= ion here, so please be gentle with me.

I've no= w used outlining software for the last twenty years at least and it is my b= elief that when a user pastes headlines into an outline, they usually want = to make them either A) siblings of (i. e. paste them at the same level as) = or B) children of (i. e. paste them one level below) the currently focused = heading.

Unfortunately, org-paste-subtree currentl= y attempts to "modify the level of the subtree to make sure the tree fits in nicely at the yank position" [fr= om Org Manual]. For me, this has meant unpredictable results. As far as I k= now, there is currently no way to use the command while making sure the res= ult will be A) or B) as desired. The user has to wait for the command to do= its "magic" and then move the headings around manually to achiev= e the intended result.
With a numeric prefix argument or by yanking after a headline marker, the user can specify the yank level.= But how likely is it that a user will yank headings to level five under a = level two heading?

I can solve my problem with som= e additional code, in which I determine the level of the heading at point a= nd then have two functions to call for same level or child level respective= ly, but it strikes me as odd that this is not part of the default options.<= /div>

My suggestion would be to make a fundam= ental change to how the command works, prioritizing definite A) or B) type = results over the current vague "the tree fits in nicely" approach= . IMHO the default should be to yank at the same level as the focused headi= ng. Then, if the C-u 0 numeric prefix (which currently produces an error me= ssage) were used to yank at one level below that (as subheadings of the foc= used heading), the functionality of the other numeric prefixes to set the y= ank level could be preserved.

Thanks for consideri= ng!

Best regards,

Ph= ilipp

--00000000000026ae9905f27b5ad4--