From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sMfMFb8S6mavBAAAqHPOHw:P1 (envelope-from ) for ; Tue, 17 Sep 2024 23:37:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sMfMFb8S6mavBAAAqHPOHw (envelope-from ) for ; Wed, 18 Sep 2024 01:37:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dUyHdy2Q; 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=1726616255; 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=mus6JFFR61MQsQxF0txuIwYw9K+VJ76vjjrsg50eGrE=; b=IikRkeg2C+tekWLJTK32l5NkqQo4A+84mdrYnFFOPUBispELCt6ZiNOr3mBphbRncdxImj 1YxvVTv9nAChCw/p/2eZ+SEQ29u0EuLUZSwBiI2dm8C0nlETmImZKnrp1IaICz0JFn1YAs xwixFhF8rvOvLlTbrbbL5P4Jnk81C1i1ZD4DiYGJrHomOCa16wGWZ29Oe+p3QPqG+p6xo2 MqDAAn1o0rF5YNN3WSDf2cLGb0cYltmaUIMCXamC+hpKakYbIptbt+pRPqv3s58av4LZTm NLNo4VxWUgv/8JMhUtJLo7EpekFV37pX3JjImgIVp5gESaevLhvqfUXoBp537g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dUyHdy2Q; 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-Seal: i=1; s=key1; d=yhetil.org; t=1726616255; a=rsa-sha256; cv=none; b=EdUwt9mXviTaSmHPHcRmcsbnLEyGmalh558TUI78zKOtVXHsImseOLrWlVjYrduPCQYrQY /irFl5WoyQ/IR7GEVKsyCs79BNSJ+0m82i79czc3SRfenW+mVsQP4ylxgjyhtQZ9/3mVv8 RxUtXP9vbtEQNxVnYWDADO6GJ+MvpZPZK1jim892N+c6Kc0H76QTjkw5fQ3Ox4zizlwLIi pGjG7WLPSzDe9W3rDEFjLnuV/DQJSzV/KOT8zGAZU7BO5nuc16EADQZ6wByNxAH7Bp0xLE 4ymD6/Mm/bJcbVH2fbVNCaRwB7NY0xqonts23bAn2o21T7e+RFoKJiULLXIB0w== 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 163837E0A6 for ; Wed, 18 Sep 2024 01:37:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqhkG-0005tx-1f; Tue, 17 Sep 2024 19:36: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 1sqhkE-0005tj-QV for emacs-orgmode@gnu.org; Tue, 17 Sep 2024 19:36:30 -0400 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqhkD-0002M8-35 for emacs-orgmode@gnu.org; Tue, 17 Sep 2024 19:36:30 -0400 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3e045525719so3533637b6e.2 for ; Tue, 17 Sep 2024 16:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726616187; x=1727220987; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mus6JFFR61MQsQxF0txuIwYw9K+VJ76vjjrsg50eGrE=; b=dUyHdy2QOHOxQ3eVoRn1SDXKxI3j8Ysqilx63WMlPFzm8CfvOeP+QlTW1s1bAeYXTL OY7o42rr/2h4I1eN1JBTgTj88gorGl/l89dCwQiaB5HrtxKbl4x07YcUmQocnPDXeZJK XB3KitVokDUkuFBtDbCA3Ic3vR7xkeTVQ3kOfe06mtLU75bvwlNuSA3oGXXhbZ4C4C8q O07UDhbDfVKVgfsc27Wnh/uh4BqywdZ9AuSTIORoT6VMQGtPYdsZdsUqhz7RUpeNysvV 7quC7/s8IdpZpXLltdHMh/cKWEK3dsUnhpt7K29xPqbw9bqCkwNYrDtBiJlJGaNlyRyQ QCPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726616187; x=1727220987; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mus6JFFR61MQsQxF0txuIwYw9K+VJ76vjjrsg50eGrE=; b=Azt5I4rWvk4plTf/HkM/fn2xTQdMkZXPvvO4Ua1918NjrSSnOs8yLgARzcf5eRIP/u pmbSft7NVqZzcnjNgfN3DlRdhxi0JKXS+Beop8dnfFsUSGU/hMUjb9hH/RI0S/8BgVJ/ xOR5hAXyjz4OZur6EnmJ/tzGB9GmizvZI08Hm7e/kg77kW1APK9mnqEk17tPXDzuNeua rWHVCNLPhIFX8CsqRaYQA0DtXVt+uo+i+9L+RbMVXDz02hfixLFqfWipCnqZCXgZPGHj suFZUSgQqr99561FieidcGzWsLgLqhFxm8wg7rOeHmbgyJ3f80cbZ7JWe7ym/hCQgDbX 2+Xg== X-Forwarded-Encrypted: i=1; AJvYcCVwUn7rSefa5PBhbzPOTkCghJ73FnorBjZZBvH2msvmWvhLFSgIj1dWMfsM0b+x+XVScpC9+if6nB+l39UP@gnu.org X-Gm-Message-State: AOJu0Ywf5MYurtUSl/EkDsyD2kpZG0Jx0Hxyai8Nh3YztLY3f805PQ3F HN0xPvG8LCxmPKcrCFJmww3keP7tWupPk1QjMZ7yjCrNugUmPzdE6lbW9ahzS1afgx5w9qJoFj4 Bba/Az8AuUy/i2iAuMBpJeb4nuZs= X-Google-Smtp-Source: AGHT+IHZyaGFeHb/BqBPGlqz09kkKdGkxRjx5G5LbSg3HB0BG/1rGllwYJ6mmwmKDYCDmTpEKOH9bHU0AXBHkoNznrA= X-Received: by 2002:a05:6808:140c:b0:3e0:4331:77c7 with SMTP id 5614622812f47-3e071aa5b51mr12898640b6e.26.1726616187573; Tue, 17 Sep 2024 16:36:27 -0700 (PDT) MIME-Version: 1.0 References: <87y14bpcps.fsf@localhost> <87msk93x0n.fsf@localhost> In-Reply-To: <87msk93x0n.fsf@localhost> From: Dan Drake Date: Tue, 17 Sep 2024 18:36:17 -0500 Message-ID: Subject: Re: org-cut-subtree should respect org-ctrl-k-protect-subtree To: Ihor Radchenko Cc: =?UTF-8?Q?Rudolf_Adamkovi=C4=8D?= , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000008620a6062259281b" Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=dan.drake@gmail.com; helo=mail-oi1-x22a.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-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-Queue-Id: 163837E0A6 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.83 X-Migadu-Spam-Score: -9.83 X-TUID: GQbEfEPxuec7 --0000000000008620a6062259281b Content-Type: text/plain; charset="UTF-8" I like that idea. It's consistent, uses "prior art", so to speak, and most of all , archiving involves cutting the subtree, so it's a very similar change to the buffer / structure. On Sun, Sep 15, 2024, 07:44 Ihor Radchenko wrote: > Dan Drake writes: > > > "AFAIU, what you are struggling with is that you sometimes press "k" by > > accident, without aiming to cut the subtree. Is my understanding > correct?" > > > > Yes, that's correct. Sometimes I'd use the speed key accidentally and > > cut the subtree. > > Then, what about introducing something similar to > `org-agenda-archive-default-with-confirmation' - > `org-cut-subtree-with-confirmation' that will query user? > Then, you can bind it to "k" in `org-speed-commands' if it is what you > prefer. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --0000000000008620a6062259281b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I like that idea. It's consistent, uses "prior art&= quot;, so to speak, and most of all , archiving involves cutting the subtre= e, so it's a very similar change to the buffer / structure.


On Sun= , Sep 15, 2024, 07:44 Ihor Radchenko <yantar92@posteo.net> wrote:
Dan Drake <dan.drake@gmail.com> writes:

> "AFAIU, what you are struggling with is that you sometimes press = "k" by
> accident, without aiming to cut the subtree. Is my understanding corre= ct?"
>
> Yes, that's correct. Sometimes I'd use the speed key accidenta= lly and
> cut the subtree.

Then, what about introducing something similar to
`org-agenda-archive-default-with-confirmation' -
`org-cut-subtree-with-confirmation' that will query user?
Then, you can bind it to "k" in `org-speed-commands' if it is= what you
prefer.

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