From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 ANW1EOJ+yWNrBAEAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 18:33:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mGOoEOJ+yWPYFAEA9RJhRA (envelope-from ) for ; Thu, 19 Jan 2023 18:33: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 6C4731FE4D for ; Thu, 19 Jan 2023 18:33:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIYlk-0007PI-LG; Thu, 19 Jan 2023 12:32:08 -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 1pIYla-0007Mi-Rw for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 12:32:07 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIYlY-00080y-Lr for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 12:31:58 -0500 Received: by mail-ej1-x62f.google.com with SMTP id mp20so7551928ejc.7 for ; Thu, 19 Jan 2023 09:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=MXu3+0tq3p1mixdRaG6Mpnes58jkF4Aqj3YVKrzAizI=; b=kmkYvyrkAahlpod+b9paz58ZQ9LsiAPCx/wVZ2VVFifJ2RHwtniAO0kXd/LHIfvJOl B1PsY+F1CMVI+68mBsl2EApTxM22jUaYXzqitypY/2SzyOHV+51aHO0w3STRAVjpOVQQ lL+dC4hae/YLjXFfaLn5EFmSw5DN3uBe2lipfb4uYzh6162Pd4bO6O6Ivdaf4jmDRQ7M 1NTp1KJVWgh5pDh0zZbjjLqXMzyaQjNmlURod91YjyFq6X7I+KPOfuqDFrj50Dit+6un g20VPRH0pFooScMVDj4mmFd7k2bwrUEdhSXXCHDec8ZjUDsUaCejEhuIZ8YlGleggN6H BMUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MXu3+0tq3p1mixdRaG6Mpnes58jkF4Aqj3YVKrzAizI=; b=wxbKmOL6W8t2OjPwNLMMhwvNmKTICOWw2Kz60B00Bzk5fqp6TBlYUA0OZAPEzW1Gom Y775L8+Bex7k9JUypmUyetAPoKlFqze4QnA/KwTGWFMimkWBfUn4Y5uP5eNhxcpZSgmQ +QuQ/oSB1P+WmXLEjvmJ1YrEco1iXw8ZSWJYal4z/QA2dlsc/ZYknIZ6V4jgmYMNlyzP Egp/paIaataEEy8oTD2sxC3VcYoaYMMubF+BPboju9TYxEQ1pGSN9n/xvUO6put9aFhP VX9tCpJW7lzfeQVyMF3Tws8HbyLcRcxq1KbnfW+lkKZU05puMpklcIE3zJW4WtsOYqXa W8WA== X-Gm-Message-State: AFqh2kokjGPk0GJ4FAb/7GqvjnBFAMjb9W7jrDa2trl6INhZRxu4yteF vTGjHq42q2dumVgXFeicZUg= X-Google-Smtp-Source: AMrXdXt8vMHBZ5rNZzjqmtoJOmD41JX7EfxRKsPMMErsW8CW8CpG5MCkeWRs+EvDZLKx4XSrmudnEg== X-Received: by 2002:a17:907:2c42:b0:7c1:413d:5b0 with SMTP id hf2-20020a1709072c4200b007c1413d05b0mr10277073ejc.47.1674149513541; Thu, 19 Jan 2023 09:31:53 -0800 (PST) Received: from [192.168.178.58] (55d4713c.access.ecotel.net. [85.212.113.60]) by smtp.gmail.com with ESMTPSA id 10-20020a170906210a00b007c0f2d051f4sm16513783ejt.203.2023.01.19.09.31.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 09:31:52 -0800 (PST) Content-Type: multipart/alternative; boundary="------------IwLnVlJFCqAk50FNRKbSaqjq" Message-ID: Date: Thu, 19 Jan 2023 18:31:47 +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 Subject: Re: Make org-paste-subtree more predictable and useful To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <87r0vs8e02.fsf@localhost> <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> <87k01i6ept.fsf@localhost> Content-Language: de-DE From: Philipp Kiefer In-Reply-To: <87k01i6ept.fsf@localhost> Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=phil.kiefer@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.094, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674149599; 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=MXu3+0tq3p1mixdRaG6Mpnes58jkF4Aqj3YVKrzAizI=; b=qplx+7ICpoyhqE35ozEejwzFATUoBNubgMv82EWsTGh5ftpiIohPYpM7sj4LhTRfrqvUnl tszKYUQUseNGxwfCJP18ImjJPkunXfTxfy/DymbwCWoj1cUvYPHIR2ZfLGgsZFwn8NVU3h XgPqwa/ONNgSSjJdptG5tYxgydnyRbwksCZP0QXh9hnjEIgflkZfk1bb6aJ3qxxdjzdSB+ dTkNja1t26uxMmkMdLWWskm2zZVj+WpWMSyccJIQJODxgEjJoJuwOr+Z87B39RYfJsJ6M1 neXMyBq9Rz12feCbKHsPPH6fLLSi22rjbF2wNBSaR6Zb4XwrUuTZO8lLVS5IKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kmkYvyrk; 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-Seal: i=1; s=key1; d=yhetil.org; t=1674149599; a=rsa-sha256; cv=none; b=m4HF80CH67q6QNIlxuI7kvxUZ+c4blJ1DbaOlvgBYQPa7FjXcO9H9cagsxiumusAgYX5K/ J1d/fk+Z5YtU5dLXm3TZxWV02YXMUMf+6gXxgD7Qz9O+1pgPg1SE7kz7xBPQMLsM1iJSh5 JZ3uJAy5EgSeGzy7YEgHoKRDZVF39sTFYweQZYHH8CorOaQ2tnLX8tceu8L9lFnYI63w4X OJUUfw+1ZcpxFFoga0hMO6ZO8T0iAAVAb3VMEMiayGMJKUrGBeE93t9KKwftJYj4NbglNW VYMz+DiHhEoyQqH/xUeVzRSb2FMidwrAWLFdDytOjxVusKU+kZsv9nP1s/QYmw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.29 X-Spam-Score: -6.29 X-Migadu-Queue-Id: 6C4731FE4D Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kmkYvyrk; 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-TUID: 7CpB/qyCyQwj This is a multi-part message in MIME format. --------------IwLnVlJFCqAk50FNRKbSaqjq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I've uploaded two screencasts to illustrate the issues described in my last message: 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." 2. Org Mode-paste subtree on empty heading glitch: https://imgur.com/a/AT5pDj6 . See my last message. Further, you suggest I use C-S- to demote the subtree after pasting it at the same level as the subtree at point. But what if I used a numerical prefix argument to copy or cut several subtrees, maybe 5 or 10? Not very convenient at all to demote them all by hand... I still hold that pasting headings / subtress either at the same level or at the child level of the target heading is part of the bread and butter of outline editing and should be as straightforward as possible. I'm rather sure the current numeric prefixes of org-paste-subtree to select a distinct level at which to paste are needed / used much less frequently than a "paste at child level" prefix (maybe C-u C-u?) would be if it was implemented. Best Philipp On 19.01.2023 10:44, Ihor Radchenko wrote: > 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? > --------------IwLnVlJFCqAk50FNRKbSaqjq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I've uploaded two screencasts to illustrate the issues described in my last message:

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."

2. Org Mode-paste subtree on empty heading glitch: https://imgur.com/a/AT5pDj6 . See my last message.

Further, you suggest I use C-S-<right> to demote the subtree after pasting it at the same level as the subtree at point. But what if I used a numerical prefix argument to copy or cut several subtrees, maybe 5 or 10? Not very convenient at all to demote them all by hand...

I still hold that pasting headings / subtress either at the same level or at the child level of the target heading is part of the bread and butter of outline editing and should be as straightforward as possible. I'm rather sure the current numeric prefixes of org-paste-subtree to select a distinct level at which to paste are needed / used much less frequently than a "paste at child level" prefix (maybe C-u C-u?) would be if it was implemented.

Best

Philipp


On 19.01.2023 10:44, Ihor Radchenko wrote:
Philipp Kiefer <phil.kiefer@gmail.com> 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-<right> 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?

--------------IwLnVlJFCqAk50FNRKbSaqjq--