From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QOzfJWoSoGX4tgAAkFu2QA (envelope-from ) for ; Thu, 11 Jan 2024 17:08:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cHiSIGoSoGU4FgAAe85BDQ (envelope-from ) for ; Thu, 11 Jan 2024 17:08:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=LnsNXbcJ; dmarc=pass (policy=none) header.from=gnu.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-Seal: i=1; s=key1; d=yhetil.org; t=1704989209; a=rsa-sha256; cv=none; b=G1XdVq+dFe0fgX0kJ5xSMEGM9uUBaX2m3afu2f9AlEmySWb9bN8D2hiFYmnofHAFOL/PIU jFql6w5ePeH199h1xne5M4fLwneFln+Rkjgd2RlfwgLxt2Gajh/Gh4lsYqIqE9tBCn+C8M /3F09FhuTBN3bMXoRj1rCFj0VsNkzbg+k20+gnyMRjFzWWzy2IBF6rY6ya7FCW/9n0xBQS 1ckItLv1tArMpM+GNiv5hY8PBxquUD2wY0L0OEJUsUeIe9UjNrJdnAJqUBl9gxVKgBRV+r UJuuB8i9PWmFSz+N5gpVXnAQcUpKbvHbqybdvpnlcqVBuOBGPZGvG8rtQ8VqEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=LnsNXbcJ; dmarc=pass (policy=none) header.from=gnu.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=1704989209; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tDCvIbEMAaurn7TGE5h20VDAqlQ+jYs+KynDGVCpf7o=; b=VT/kCrnnCRY2bRa3VeE50H/VUZ3rPnVrWuVge5zydgK3ntiut7BZJjzBjioPqKVhdkyLga sQbO8UE5PsJ5mwfZGjSkTjz2v4iWJ1pplf1h5XcV1CTvIqZoJDdGE3NvafDnNsYbXbEXxP 3HRLqMGJDvvhISLDkBR8DodHpRmsauhj5cZTPIJMiVHVp1FNO2p2pC9Flz4Ixx3wzDQrR6 nMvY1hqt1Z8kFk25UnM/FRkgkyNLOmCLeVo9xm4YVKhc8G4CTu5s9Ojp7DPFYWFx/mInzT b/NoYohJKILAL8kTJDE1T2wOJxxEPHj7Zhx4yTQY7nun++e6yGkh1P4q29P8Bw== 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 09BE139E69 for ; Thu, 11 Jan 2024 17:06:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNxZI-0007qn-05; Thu, 11 Jan 2024 11:06:08 -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 1rNxZA-0007jw-VR for emacs-orgmode@gnu.org; Thu, 11 Jan 2024 11:06:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNxZ8-00018v-6H; Thu, 11 Jan 2024 11:05:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tDCvIbEMAaurn7TGE5h20VDAqlQ+jYs+KynDGVCpf7o=; b=LnsNXbcJrXMM HHBbjx5x7Vf4R992Iht2UQ4yRST4nIeY0fl5yvJarl9W+cZlKcIBg5vlaaxg87wlBImlpqzvrvElM 76kWhNieaM9dgdOZ4MSnnflDyrOloxph2d8sGsC6zn4tgIMnFwQOBRCP+pjaeuL2FPAKadrgJmlBm BT63ScC3LNtgt4QuBH9OQCAHnS77Xn5Z0mHymh7b1iIYTMbdcKLW3ayQlB+CsALIwUF24T9KrTKmX x5GiphNLX0NK1nunk1cM1w/qWcR9Seh8JP4sD34dBa7qHehNIMnOqdwfABJ3NmhOprrEYUjsObVDS b4oBNdYtkC2GPQ2N6RbiSg==; Date: Thu, 11 Jan 2024 18:05:35 +0200 Message-Id: <83bk9rlusw.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko Cc: monnier@iro.umontreal.ca, emacs-orgmode@gnu.org, 65734@debbugs.gnu.org, manikulin@gmail.com, iota@whxvd.name In-Reply-To: <87ttnjj2dp.fsf@localhost> (message from Ihor Radchenko on Thu, 11 Jan 2024 15:50:10 +0000) Subject: Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)] References: <87il8pao4l.fsf@whxvd.name> <87tts8vrpb.fsf@localhost> <83cyyw4of7.fsf@gnu.org> <875y4ovct9.fsf@localhost> <875y04yq9s.fsf@localhost> <875y02y0da.fsf@localhost> <87frz6w2zt.fsf@localhost> <83cyu9nyea.fsf@gnu.org> <87sf35pcds.fsf@localhost> <83y1cxmgws.fsf@gnu.org> <87ttnjj2dp.fsf@localhost> 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: -8.43 X-Spam-Score: -8.43 X-Migadu-Queue-Id: 09BE139E69 X-Migadu-Scanner: mx13.migadu.com X-TUID: lTZP7Jm7aMc7 > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, emacs-orgmode@gnu.org, 65734@debbugs.gnu.org, > manikulin@gmail.com, iota@whxvd.name > Date: Thu, 11 Jan 2024 15:50:10 +0000 > > Eli Zaretskii writes: > > >> Then, we discussed that Emacs commands to not always provide enough > >> toggles. So, I am asking to add one in this thread. > > > > I don't think I understand what kind of toggle are we talking about. > > What I would like to request is a way to handle the following situation: > > * Heading<... few hundreds of lines of invisible text> > > If the user calls `kill-whole-line', a large part of the buffer will get > deleted. We had complains from the users about accidentally deleting a > lot of text in Org files in such situations. > > So, I'd like some way to configure `kill-whole-line'/`kill-line' to warn > user about killing hidden text when we detect that we are deleting a > folded heading. Something like: > > (y-or-n-p "Kill hidden subtree along with headline? ") > > I believe that it might be useful in other situations as well. Like in > outline-mode or outline-minor-mode. How would kill-line know that it's about to kill a subtree? All it knows is that it is killing some invisible text.