From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id uFd0MAWxJWbRCgAA62LTzQ:P1 (envelope-from ) for ; Mon, 22 Apr 2024 02:36:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uFd0MAWxJWbRCgAA62LTzQ (envelope-from ) for ; Mon, 22 Apr 2024 02:36:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jtw8qUvC; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713746181; 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=/USTJj7qYmhI2o/pdGsDsUV0645456KpOcHiJF0Xpfk=; b=GkTH/i38QnC+/lfuOC4xuZPVfBsdBC9PM4/nWHOTjP+c+sAJYbylHJZb0gGBGHMk0ab2zr uBKJljKnl3154VPTY6vMNkZvLSdDgkxnfIXhOho9W4eeCwSHHymT86i6mnnTwmmGxPWBZQ FPMEgIZ9V/+XtnndTJIw6KxvkR86yaNU1swijCPsDWLtgHEGWkTi5pTmR9ZZqUxZUibTPn 5LiTe1KNUTJ4KTwYmceNI8l1Ewyab1PZxBt8KZBMZPqaAbWloZULl3XAzNXbpb36W0E58E x2Q9sLzI93HKYvKyXju4lX1PO+VCP8DnKiD5nFKsNTmzK5ZbHSpXBhzbI3FvvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713746181; a=rsa-sha256; cv=none; b=CrcETKNqTZaMtxicy6trL2eKKgWB3OKsreAqOU0Oz0lrjygxPy4+9iyPzU6JFY3n3zL9NE bokmgkDnIGZ5QsiblPGybG9oaO7Klv2+/BYjWxg5EhOMSY44lmYx2A41A2kOOBpBaHeE5Y jI93N17jo9cEs3hDu2nbhAo6AkzY/uJ8kQJT7GCGhYgMdMQoYNRWt5v1xOE9bPSoIXHb5V d6CcijbyLQN5ZaGxpTvlADUOSQPk0pyO6MKaaV9TDoQAjLAtBOfHA0kQHKmnA5OcygZCyy JWwvnD1FPNJNxxaPspnic383Sx2bj27FMeesB3U+uPWE+hQplZ9TQoKq6vjeng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jtw8qUvC; 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=gmail.com 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 5602810362 for ; Mon, 22 Apr 2024 02:36:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryhee-0004yD-T3; Sun, 21 Apr 2024 20:35:32 -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 1ryhed-0004xt-0j for emacs-orgmode@gnu.org; Sun, 21 Apr 2024 20:35:31 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryhea-0006ar-Lz for emacs-orgmode@gnu.org; Sun, 21 Apr 2024 20:35:30 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-51afa5ab555so285970e87.2 for ; Sun, 21 Apr 2024 17:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713746126; x=1714350926; darn=gnu.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/USTJj7qYmhI2o/pdGsDsUV0645456KpOcHiJF0Xpfk=; b=jtw8qUvCsY3UTdoW5SdGRloyFgA78LX8W8XvVt3pqLE+xeNNkf+YfiKci7UPdPPjvM 9ZzG3i0R5JVJsaWSGuJR8Z324rmYowxFOFPPeV7r/Shp+tLqUuwG6tZYRpFFmUQcEEkN s5UqJFUSCpwcmeyBmlKUaC0KhNMcHMYDl2f1pU+he2xiiVzR2JAAUpKXY4N/bG/mvB57 ffzrwaZeSpUIuNgOqiEeuz4flV/ebpy7nWDJPNE7DE7kBvczYwnaWLAmVPGwumXI/b+3 itp+6SaMD5P3oiLgxi/KTHks75LFFvrPBgy7GbJA4iM3E3PSF5QOWQJJJkMgZ9JDlRHG 1gjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713746126; x=1714350926; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/USTJj7qYmhI2o/pdGsDsUV0645456KpOcHiJF0Xpfk=; b=ZdjxmtP/R8d5tbIBqc0qrLsYOim3NNbwKk1mSb4CMMAN9bOSIwehck50VB/C1eiOXz hlw2DONPeM+Naw7KM4Ah8hfhhr0UG6XsFj8HaLM94TQK9cWlPstyJAWcmlwczONf+ny4 R6DoPAstadsgvgAWJ54mOjPby526GxJy5DYv9hXRZTrnFkW6+v5ISckYLK4jDer7xkit XkY+VkV1S7hN55SAWbX0Q85vZf+813cJ63KtKeTeXXA0VpYsNp0Ae1hM+fJRfphkNRkC +s7OCtHUp+S0xiiTE8J209NSKG0ZzuPpA6y1QY0jQhIJalBwesoqpM0RV5GIH1ZtF5+d FGlg== X-Forwarded-Encrypted: i=1; AJvYcCUHrjkQpkHuS8rddNJ4nllhIW0asapUQv8MDVh8J7nRexZ5fxyM+VN9n+BnK8RnN4Z+RKg8zVEolaVpaFAxmwo2+jYDb30= X-Gm-Message-State: AOJu0YxPHiz0yNCxOw4Fglw0mbM6t205hZHicR3oYbH75WckRyY2G4m7 0jqcKk4k8NAm1fdJIYTxXnmdW2TDzK/jP6JqRDkDQaBnbufgdG1kk0HVSCFktj3sxiXN/ZdKu88 jYbYg+h+Uo8BGFsGTjJSt/oYtAak= X-Google-Smtp-Source: AGHT+IEkMaM2vrc/OScI9amjODA7tSprDCKgzy1O7DSUgARg11pY6a4Q3yDQM93ELMtGLKHPlg97Q2AI0/Nfetw8NqM= X-Received: by 2002:a2e:8455:0:b0:2d6:fe13:f9aa with SMTP id u21-20020a2e8455000000b002d6fe13f9aamr4796423ljh.3.1713746125698; Sun, 21 Apr 2024 17:35:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4441:b0:28b:8855:7106 with HTTP; Sun, 21 Apr 2024 17:35:23 -0700 (PDT) In-Reply-To: <871q6yrkih.fsf@localhost> References: <87r0vs8e02.fsf@localhost> <2eebe03e-fda5-f879-2643-2c9a146dd23e@gmail.com> <87k01i6ept.fsf@localhost> <875yd1tskz.fsf@localhost> <3a3f37a2-3e0d-06ce-4c86-ca3d73ed380f@gmail.com> <871q6yrkih.fsf@localhost> From: Samuel Wales Date: Sun, 21 Apr 2024 17:35:23 -0700 Message-ID: Subject: Re: [FR] Add C-u and C-u C-u prefix arguments to org-paste-subtree (was: Make org-paste-subtree more predictable and useful) To: Ihor Radchenko Cc: Philipp Kiefer , "emacs-orgmode@gnu.org" Content-Type: multipart/alternative; boundary="0000000000000ebf290616a49daa" Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=samologist@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, GAPPY_SUBJECT=0.1, 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-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 X-Migadu-Spam-Score: -9.69 X-Spam-Score: -9.69 X-Migadu-Queue-Id: 5602810362 X-Migadu-Scanner: mx13.migadu.com X-TUID: RK+rdJI2QpcU --0000000000000ebf290616a49daa Content-Type: text/plain; charset="UTF-8" not sure i am fully following but it seems useful. i thought i would report on a use case thtat might or might not be relevant. it seems so. i often have === * heading 1 text of heading 1 * heading 2 text of heading 2 | and more text === where | just shows where i want to yank. and i want to make it look like this. === * heading 2 text of heading 2 heading 1 [/possibly/ with star removed] text of heading 1 and more text === in other words i want to combine two entries into one by cutting the first and pasting it someplace in the middle of the second. [or, if the star is not removed, then i want to basically truncate heading 2 with putting heading 1 in the middle of the text of heading 2.] what seems to occur with my settings is that heading 1 gets inserted as a sibling below heading 2. which doesn't help much if heading 2 has lots of text. so i'd like something that can allow me to at least yank at point. others might not have this use case. it is rather frequent for me. On Sunday, April 21, 2024, Ihor Radchenko wrote: > Philipp Kiefer writes: > > > To be honest, I don't see much need for fine-grained special cases. I'd > > be very happy with C-u yanking at the level of the heading at point and > > C-u C-u yanking at one level below that, regardless of the exact > > position of point. I realize that would mean C-u doubling what can > > already be done by calling org-paste-subtree with point at the beginning > > of a heading but accessing both options (paste as sibling or child) with > > a single or repeat C-u seems more consistent to me than having one > > depend on position and getting at the other via the command prefix. > > This feature is now implemented on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5b0b7f292 > Done. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com --0000000000000ebf290616a49daa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
not sure i am fully following but it seems useful.

i thought i would report on a use case thtat might or might not be re= levant.=C2=A0 it seems so.

i often have
<= div>
=3D=3D=3D
* heading 1
text of he= ading 1
* heading 2
text of heading 2
|
and more text
=3D=3D=3D

whe= re | just shows where i want to yank.

and i want t= o make it look like this.

=3D=3D=3D
<= div>
* heading 2
text of heading 2

h= eading 1 [/possibly/ with star removed]
text of heading 1

and more text
=3D=3D=3D
=
in other words i want to combine two entries into one by cut= ting the first and pasting it someplace in the middle of the second.=C2=A0 = [or, if the star is not removed, then i want to basically truncate heading = 2 with putting heading 1 in the middle of the text of heading 2.]
=

what seems to occur with my settings is that heading 1 = gets inserted as a sibling below heading 2.=C2=A0 which doesn't help mu= ch if heading 2 has lots of text.=C2=A0 so i'd like something that can = allow me to at least yank at point.
others might not have thi= s use case.=C2=A0 it is rather frequent for me.


On Sunday, April 21, 2024, Ihor Radchenko <yantar92@posteo.net> wrote:
Philipp Kiefer <phil.kiefer@gmail.com> writes:

> To be honest, I don't see much need for fine-grained special cases= . I'd
> be very happy with C-u yanking at the level of the heading at point an= d
> C-u C-u yanking at one level below that, regardless of the exact
> position of point. I realize that would mean C-u doubling what can > already be done by calling org-paste-subtree with point at the beginni= ng
> of a heading but accessing both options (paste as sibling or child) wi= th
> a single or repeat C-u seems more consistent to me than having one > depend on position and getting at the other via the command prefix.
This feature is now implemented on main.
https://git.savannah.gnu.org/cgit/emac= s/org-mode.git/commit/?id=3D5b0b7f292
Done.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



--
The Kafka Pandemic

A blog about science,= health, human rights, and misopathy: https://thekafkapandemic.blogspot.com

--0000000000000ebf290616a49daa--