From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 qEaKCeTfzWaOgQEAe85BDQ:P1 (envelope-from ) for ; Tue, 27 Aug 2024 14:17:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qEaKCeTfzWaOgQEAe85BDQ (envelope-from ) for ; Tue, 27 Aug 2024 16:17:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=G6IhDdp7; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="M Hyp4pH"; dmarc=pass (policy=none) header.from=adamkovic.org; 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=1724768228; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Qx3hZqWqpIfg2f1qITLK/cxXbxNXfJZu3/wdTDxGxTE=; b=np5ovjKXXXzpxQwyJWs5cNw+eNeATbNEAlfP6KxhP0iHvSwWswsmLq3SVa09VQxuQ44SMe q1aMqC9MAWnHGPHMft67ZFAkTM52cq1O5cJ1sqHfSx/UQtubpiQM36lNva/QKBLQ0g9Hwo uBbLkDeN0ScrkfpTOMCXcAIEEbug9qa6/un4LlNZljToi647tU4CObSK3wxaJMVWKg1P/l ecQXjIgGvU1Azu+1AK4OLBdwL4a6JOEioD+BFgY8zXeWLKh9IEiutWbuqq1RETZ8hUkA+5 1sy1S0oiRTj1qM+EoM4ETM973jywRgVG5bXF3Dnmt3NPo0tVpiki7du3ktWrYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724768228; a=rsa-sha256; cv=none; b=Jzg1++KIUJiITWXffKuUv8hVj99rmB0sysL5DJEhV77wAJ6wxwcKNvGtuIiQz0L9BbksTF z0BfxVKrcRenwCqoBj9ijrHnvENP9pPwOe+WUgIy1jgXCcgPCzcqsoniJ4AgG2rjpx/nwc oP5UlDTaTj83fr1jMXk4zoD89EgPKXC0/jWJ7tESx3jVQddBuP2Cqf96FmAbCeQpJ2fkRU p6kYNHB6EreopJHXEIzRdUzPGc0wSqngPH9EdOOS1usxUzy36tbaJsm5yn9P8DfiL5WtNk l29L34tlPXl6tq0IPfGKOt5NH15WfrbB69rbNZ18kqAKSiosz/Aub8+Xe6P7Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=G6IhDdp7; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="M Hyp4pH"; dmarc=pass (policy=none) header.from=adamkovic.org; 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" 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 38A5E3A904 for ; Tue, 27 Aug 2024 16:17:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siwzb-0004oL-1J; Tue, 27 Aug 2024 10:16:19 -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 1siwyl-0004bq-Us for emacs-orgmode@gnu.org; Tue, 27 Aug 2024 10:16:03 -0400 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siwyh-0003DX-Uo for emacs-orgmode@gnu.org; Tue, 27 Aug 2024 10:15:27 -0400 Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 3114E1151AB8; Tue, 27 Aug 2024 10:15:14 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Tue, 27 Aug 2024 10:15:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1724768114; x=1724854514; bh=Qx3hZqWqpIfg2f1qITLK/cxXbxNXfJZu3/wdTDxGxTE=; b= G6IhDdp7dy2sdo9BPDJwQmZ8tApEJSeIUI8qldWbjjmP/DqjZa+h69ZiYx8ul6WT m6veFyicRc06LJaMAc7lCupdDiV2BhtFul2SxCIfKetQXX+tKK5x7gzla3IGsxVz jSjX3a/RCTTmqP/hplxovpSolpHK8ZeJnLzpE0Womkwl8Tezdvs9mtSnFJawrVzb OQmUl9dPHtvkGEfngYGY4Oppw7riavXf2S++dd3tTMRavUEv2+9dN2cLs9zZaJiL nqIFPU6PJqM8wnyoSgHljnf3OZq2pj+33uQMBnIeuf6WVTjPkd46K8pfrGudxzRk mNkDkdk2c69O+9xLhU0fSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724768114; x= 1724854514; bh=Qx3hZqWqpIfg2f1qITLK/cxXbxNXfJZu3/wdTDxGxTE=; b=M Hyp4pHXpb4IcLE264bc/nzKTPR0Ryj8bkwjrClbOR1Ls/oczwDYj2Zl07WSzIbIJ Qgyd2fss3MN8K/fnGEaOx82O0vDHQpqjaVSibIWjnDFXsTx+ujcD6PSgbEEmS+Im 2GoippxBzFAluM7CIp19S6Uxh6ByPOBYbWQGZOgZjNll1CfIFqCe07BGJNIzBzeB CvnQhFgQBPsBF5AI/yylDRe5yqCAmhsZpuw1vaimwztzYiZ+GPkC83Yhnb0/Erl6 bXMXSCE3srCR0iSaY8xVRQm9dpG3PMAw/4Vpm1JKrS+T6+3tDUT7Khbtp4WVqNWN WNQ2AgyEDQ9+WBJQYROwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeftddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvufgjfhffkfggtgfgsehtqhertddttdejnecu hfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhlfhesrggurghmkh hovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhephefghffhfeetheeitdevffelffet veduteejkeehvdfhjeevvdeukeehgfffheetnecuffhomhgrihhnpegruggrmhhkohhvih gtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgpdhnsggprhgtphhtthhopedvpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehg nhhurdhorhhgpdhrtghpthhtohepuggrnhdrughrrghkvgesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Aug 2024 10:15:13 -0400 (EDT) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Dan Drake , emacs-orgmode@gnu.org Subject: Re: org-cut-subtree should respect org-ctrl-k-protect-subtree In-Reply-To: References: Date: Tue, 27 Aug 2024 16:15:11 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.152; envelope-from=rudolf@adamkovic.org; helo=fhigh1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: -7.67 X-Spam-Score: -7.67 X-Migadu-Queue-Id: 38A5E3A904 X-Migadu-Scanner: mx11.migadu.com X-TUID: vCXy0j7sxo9K Dan Drake writes: > I took at look at the source code, and it seems like a trivial change > to make these two things act consistently: [...] Dan, Thank you for reporting the bug and even prototyping a solution. I think the logic should be extracted into a function, and tested on all paths: - `org-kill-note-or-show-branches' (`C-c C-k'), - `org-cut-subtree' (`k' on first *) and - `org-kill-line' (`C-k'). However, we should then also rename `org-ctrl-k-protect-subtree' to something more general, like `org-protect-subtrees', as it applies beyond "ctrl-k". Rudy --=20 "The whole science is nothing more than a refinement of everyday thinking." --- Albert Einstein, 1879-1955 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org