From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UNO0JzBrymPZHAAAbAwnHQ (envelope-from ) for ; Fri, 20 Jan 2023 11:21:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cLXGJzBrymNz6QAA9RJhRA (envelope-from ) for ; Fri, 20 Jan 2023 11:21:36 +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 3DE554087C for ; Fri, 20 Jan 2023 11:21:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIoVn-0004Ta-AO; Fri, 20 Jan 2023 05:20:43 -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 1pIoVl-0004TQ-TP for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:20:41 -0500 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 1pIoVh-0000T5-BD for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 05:20:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7F995240106 for ; Fri, 20 Jan 2023 11:20:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674210034; bh=DXgJ9nUGGOAXQyFn/0MRHnOz97WWGV3iZRPYz7ua+44=; h=From:To:Cc:Subject:Date:From; b=dvy4+6ZIrRnNlOwuetd2Mu/eOm7gkktNJee4b+SStQpG97JLzHj6uhGkhCev1Vphd 4QKoVom7/4gppLjZ+v8OFWJbT4+czvghsyUh1ImEKrZ/rA5K1PC793OskhYdhs6bWF DgzuiIXrctNCJ9lmtc6LlWi2xKex5t80e5rV1GlQJ3brgN4YVRy1DSSodcPBH+7V9A hkFWBPoxW/SymQW9fYeIayShx76Z5ifV9Qrk3hNtcpyWDt4OYkji6EpGD+6n/G3oud SSE7OVlLrkLDivz1BTDO+KUfPTPasgZ70RKP+lcBqn+1Qh7avuVCLZi3Bd6O3rIKN+ FR8B8TS490gYA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NywVl1dB5z9rxK; Fri, 20 Jan 2023 11:20:31 +0100 (CET) From: Ihor Radchenko To: Philipp Kiefer Cc: emacs-orgmode@gnu.org Subject: [FR] Add C-u and C-u C-u prefix arguments to org-paste-subtree (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:21:00 +0000 Message-ID: <875yd1tskz.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: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 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, GAPPY_SUBJECT=0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674210095; a=rsa-sha256; cv=none; b=jmSobMuawTCe9ajXH9DpARPbsOCxP0fcekQDOY5XxnbKnni2hau306H4dRNln+2Ny1SynK s0kwkFeqzpj6LDV8Jm39KiaFY6QrVUHkBhY8uIoxF3kMY1vLTULa5K5Nh2XVy+hJ7Qf7fA ZXwZ4o2CfnHTM17fsCrcFFGMdB0yp8Gcd5ipG4qRDA8VOoSKcZTFotlzgY7vgUfDLPcR56 KQnTeq3tHGy5UdmyRWQ3bZPao8KkaY5MlxcPJD4XWV0tVLtGLngrbYbdScfFqK3W430XyU k5B5CKGDRZcTp6CcE8DQxWaMTpR8N3alzzLoU42LsgYblZceBt8wGzfx5ShK5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dvy4+6ZI; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674210095; 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=0B3El3QmT6xzCG3d8TUNqsImNGGKkQDPBCOMpV4EJtg=; b=Q3O/3o1KXq7tLK7f3+U0gwZB0EVMVDE31dq8yf+CTtvYXWG9OJPlXr5QMRVYtPDPgvgm37 fFDzA5RXzmYS8V2SIlE7HIwdnMyNHn+UVvf9c1eqQ1AX8+EwiRVhuOaAK474jNde9iBHFb Lgj7RjKeEn3TGhyqYL6s7l+aUC3L9XHb1a84NVEODU10tJj4RFNryTZfrSXJ96HeiuhuyN Y2MoMFZg57K1bXBeXQ2/s8eSdJRpXdkcdPeh71gkGjcjZxMM17UhXhx9sHOqM77ujrNWaz cxVqJQv9lAUEulohy7K6ZaFZIfQ33tmMq8A/nNicFKEQHsYuo5IOImpTksv17w== X-Spam-Score: -6.37 X-Migadu-Queue-Id: 3DE554087C Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dvy4+6ZI; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.37 X-TUID: hx20bNWrvIuo Philipp Kiefer writes: > 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. Could you please provide concrete ideas what C-u/C-u C-u should do? In particular, how it will interact with point located at heading, at heading beginning, at empty heading, or inside a heading section. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at