From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aCegL4AToGV8vwAAkFu2QA (envelope-from ) for ; Thu, 11 Jan 2024 17:12:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uFgMKYAToGWmYwAAqHPOHw (envelope-from ) for ; Thu, 11 Jan 2024 17:12:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fcaas7PA; 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=1704989568; a=rsa-sha256; cv=none; b=tyGl4plZlfwUux6DzkBEKw2EqBhkCG07XQuh2MXoIwa7exLvXfQ20r9wAHYMuquDJjKokD Sv3ToK2nrJdhdS3IzmXbx6TnP/bNpwtpczCbZVVmrBCbRePYR4U2q89tCJxowa0Yfer1Vp jZ+MowesFYKTYVhp3s5kgMsEn4acqmUfRwaxjTKimQ0U8Ap+nelAEibiZU8NvgDCrfkCYJ DhfUs8v+XWOd2jtdU4+zw2O0pv1zg+5ZimHOya0m69z7x9jgBHxYXIdjGVHdyA6AfQ/sCi zmA8Kr9AqX+gikjx2TAsyJ42n5Y7Ev4CtiweMVRScMmZflKOE44iJBq1521iRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fcaas7PA; 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=1704989568; 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=99Yrmd0X0s6qCXw1XnadW4lB7BSY7alAR04HUWVumaI=; b=g1nBckq9XKGn7Cucd1fjruVIm/GMBULVHiCpDBeT5WcI7d4oUR19AtGP5oiZ6thW/Zpcwu wukRwexb00qA4t3wVSBcsL0CR5zkEHWu8TIkWTlMqsBCxXwt/ADG6XPpp/S6W0rG4Mh/Ds +RkRrKL9GkcFxRnNRxdZB/pdJtziZYhhPADQCgPZQkEOFW3EUSU68S1RSPE4jUcjyAn/dR CN2pJewMowNu2OidYjhlfj3MTQXUcitNz1vt67U69svJvPnfYMc1MLq8bMwoT3fbfizxnd bqranoUGiWJANxApmicLLQ+MKLHo9nXj1SLwL29Hj1iEln4Fsz2nqA6tZKLKzA== 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 851AE3A4BA for ; Thu, 11 Jan 2024 17:12:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNxfH-0004f1-VM; Thu, 11 Jan 2024 11:12:20 -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 1rNxf7-0004c5-Sa for emacs-orgmode@gnu.org; Thu, 11 Jan 2024 11:12:13 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNxf2-0003S0-Ug for emacs-orgmode@gnu.org; Thu, 11 Jan 2024 11:12:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1B145240028 for ; Thu, 11 Jan 2024 17:12:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704989523; bh=0ZyOfxU8m6+xlu4O3FOSglAbXlo4n/+WAfn2V3URTRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Fcaas7PAAJ7Vl1f2LSRebVirU8dSah2fsfhud7ic2IULo4QmSitIAcCaXtz2YxSJ0 /HunrszHShE/iYItwf5X3JMbzMjL5hwvCd6F0bmYnAv0PAgMNrIeXU78SI8S4gf6iH CR0xKTFz5JIqSlzfJPYC//zwKHTO0AmTUogYZgaLnsH1UHHy2gsc+bCCjPYwuL7rVL wnZbs+RUenmLGowaFSTUWFUmhhj7SEHLvf494VXJpjjs/dhNcCFD1cNmQ76EJl6GBn emZKN1DKcS7qWvemEsa4ThbNdqeONgZBQAZ0SEk2yJNT6biNuHQleOVEvClNVJRHfE iQ2/maijewEfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T9qS16mvHz6ty3; Thu, 11 Jan 2024 17:12:01 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Cc: monnier@iro.umontreal.ca, emacs-orgmode@gnu.org, 65734@debbugs.gnu.org, manikulin@gmail.com, iota@whxvd.name 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/)] In-Reply-To: <83bk9rlusw.fsf@gnu.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> <83bk9rlusw.fsf@gnu.org> Date: Thu, 11 Jan 2024 16:15:13 +0000 Message-ID: <87h6jjj17y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.93 X-Spam-Score: -6.93 X-Migadu-Queue-Id: 851AE3A4BA X-Migadu-Scanner: mx13.migadu.com X-TUID: IYCj9E1Gtvne Eli Zaretskii writes: >> 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. I imagine the following: 1. `kill-*-line' function will, by default, test if invisible text of length size is killed and query the user when called interactively. 2. Major modes could also set buffer-local `kill-line-query-function' that will return nil when killing should proceed without query or a string with query text. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at