From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eP/lKW37FGdaRQAAqHPOHw:P1 (envelope-from ) for ; Sun, 20 Oct 2024 12:45:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eP/lKW37FGdaRQAAqHPOHw (envelope-from ) for ; Sun, 20 Oct 2024 14:45:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gb8hwxtt; 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-Seal: i=1; s=key1; d=yhetil.org; t=1729428333; a=rsa-sha256; cv=none; b=Lm/SSl54CaXwavxUlE+JOY+R3GeUHcdkKmvMsFJjvJHWHv19ag3aCHDsV3qxFUV5SEpWnE F+a6HzHFxRnmPWLB0Y8bzDV7gGBLo3jpaVgFf1DbLuorVyZBynJKJFnT1S6+qM1nd8u7dn 0opiyqNH+9NXz1ZXFxRprnQKxaN+S41fHwyj/8GRYaDODfebjLuxAAbx8e3IrKsFMSFpNY Q0qkAD9S+gfLwn8F9j5eJGbYWYPDY3OsmZSLXA2SESwtqZNClMOJ7ipmhi5tC2RiuORe1B ldGj0zpBsJxbWr3RJgj3aeFJN6EqO/c2QKE0ObMI7Hy2WAqJ0mxcRi+ilcjEaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gb8hwxtt; 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=1729428333; 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=5AKD+TUBbxA3w+0IXtg2bf25golM4cc+S9/26Q+YEYs=; b=ZUHdqMTTP+eiFVhV99H1/Mazh7nMsKQACp84RJJdqWG8xUfM74f0ZHdFut6skCdLSKl7qX fyn1ijMBUGb9z9+dMNpc37piCG9ngopQtNQ+LKE7ibhT7ALvJaTH2Qyycm2C9v18/Seak3 g5Y92BA1K+xid5pN0k7omnqdNjou7LaDAsPxvV+KidM8MYvPYTlkMHNse92/jNv2M9OEH5 8eFB+o4DbCL/bllE7SgNOQBUom4TdwrFfwNhRY8cLiyiXgxTUuLyzDK/9R7Ws4Z03OKUs0 w8iOlLkGgLhRAy09yx/JycM0dWlqWkAIQfKFDDnnQe33GIzhzXiqdf1S0U1QnA== 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 431F718B91 for ; Sun, 20 Oct 2024 14:45:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2VIS-0007Cz-Pt; Sun, 20 Oct 2024 08:44:36 -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 1t2VIP-0007Cd-Fw for emacs-orgmode@gnu.org; Sun, 20 Oct 2024 08:44:34 -0400 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 1t2VIK-0003cv-RR for emacs-orgmode@gnu.org; Sun, 20 Oct 2024 08:44:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B609F240101 for ; Sun, 20 Oct 2024 14:44:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729428262; bh=y7nWmfsrN2Hci7Ba6Z/4wMjxrBqMEDqtX9dF8J7pU3I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=gb8hwxttSF5s9fgDQExI4T5S8hm8vyhcYjhA8IGJ7uG1adujo1Xbg7r7DYQVW01tf 2i0wnUNhMkJ5do64sz1R3TDyPSUKfXgQ3vf620BgCz2RRro/e83sdosXmM/P9C94Wa sSpmCfNBSsRMYKno90BAHiG72fsyPSoTFE5rjSaJlbR/V1Z8lz+8SAX4yqFRadf5uU MoTZu/83WiO4RGNbZULBLTdtNtq6/b4D+0gsHIeck8zbx0QtkSXoy4GiEWH9983vpc +xDxiVTsPl68gHwpT4jw4zatYLMdd0dwrbQNtGXS7s5/YhxtM8riYAlgjDUwR9dY58 dqnnWWv3Cnmyg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XWdRn3lRDz9rxK; Sun, 20 Oct 2024 14:44:21 +0200 (CEST) From: Ihor Radchenko To: Dan Drake Cc: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= , emacs-orgmode@gnu.org Subject: Re: org-cut-subtree should respect org-ctrl-k-protect-subtree In-Reply-To: References: <87y14bpcps.fsf@localhost> <87msk93x0n.fsf@localhost> Date: Sun, 20 Oct 2024 12:46:08 +0000 Message-ID: <87jze3q6wf.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.17 X-Spam-Score: -1.17 X-Migadu-Queue-Id: 431F718B91 X-Migadu-Scanner: mx12.migadu.com X-TUID: ZTrNA1kqrFGa Dan Drake writes: > 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. I looked into doing this using a very simple variant of the command: (defun org-cut-subtree-with-confirmation (&optional n) "Cut the current subtree into the clipboard with prompt. Like `org-cut-subtree', but ask for confirmation before killing the subtree." (interactive "p") (when (yes-or-no-p "Really cut current subtree?") (funcall-interactively #'org-cut-subtree n))) However, unless we change the Org defaults (which I see no reason to), this new command will need to be used by users who are specifically seeking for such functionality. As you see, this thread got no replies from other people interested in the same functionality for over a month (Rudolf was interested in something more generic). Considering how simple the command is, I now think that the interested users can trivially implement it themselves (as you did). I feel that there is not much benefit adding such a command to Org mode itself. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at