From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: 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/)] Date: Thu, 11 Jan 2024 15:50:10 +0000 Message-ID: <87ttnjj2dp.fsf__22401.9390925363$1704988123$gmane$org@localhost> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65734@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, monnier@iro.umontreal.ca, iota@whxvd.name To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 11 16:48:35 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNxIG-0002aO-Qx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jan 2024 16:48:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNxI1-000469-HF; Thu, 11 Jan 2024 10:48:19 -0500 Original-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 1rNxHp-0003gM-34 for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 10:48:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNxHo-0000iE-R5 for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 10:48:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNxHm-0002hV-3C for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 10:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jan 2024 15:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65734 X-GNU-PR-Package: emacs Original-Received: via spool by 65734-submit@debbugs.gnu.org id=B65734.170498802910164 (code B ref 65734); Thu, 11 Jan 2024 15:48:02 +0000 Original-Received: (at 65734) by debbugs.gnu.org; 11 Jan 2024 15:47:09 +0000 Original-Received: from localhost ([127.0.0.1]:33652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNxGu-0002dq-Mv for submit@debbugs.gnu.org; Thu, 11 Jan 2024 10:47:09 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:47535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNxGp-0002dF-Ee for 65734@debbugs.gnu.org; Thu, 11 Jan 2024 10:47:07 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CFC38240029 for <65734@debbugs.gnu.org>; Thu, 11 Jan 2024 16:46:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704988019; bh=Da18y0jBxJrQFJCP0u874DTKFK48AiwG6tFUd2tHo8Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Ad1RPUovjDL428+1Q/sjSj/VULV/sWuVbaOfJFhr+a4+fyY8r4bC99+sebHlxAQi7 8v/ItV028U9HFR+ZncwU6IVNWP9XIS3/kE/mN1HccveZb4RaeBRTV6Y5C9bPd17Pyc ZWl+ZXcO97B/iWQJ6Oeg0aDm2+TkVUde0AcDI89KReiolLOmmrhjVFO/8W1uy/+nbS jeuQ/31XRAV7ZBhZZ64Mc4ystSBiZVenIwJNxSvWWLxpZheyXV0btJ6TeDw1TpcG+2 11SdS7vNH0HMChp6fvs/QU8WXQE5Yc2mL736uPrKD17t49NXskMbIP5S9ltsKeIMvn lYZPdZiOaYuLw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T9pv66k2cz9rxF; Thu, 11 Jan 2024 16:46:58 +0100 (CET) In-Reply-To: <83y1cxmgws.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277911 Archived-At: 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at