From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode 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: Fri, 12 Jan 2024 16:03:41 +0200 Message-ID: <83v87yir7m.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> <87h6jjj17y.fsf@localhost> <838r4vlt0n.fsf@gnu.org> <87bk9rivzo.fsf@localhost> <8334v3lltf.fsf@gnu.org> <87le8uhh9a.fsf@localhost> <83zfxaivfv.fsf@gnu.org> <87v87ypvyh.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38055"; 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: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 12 15:05:57 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 1rOIAX-0009gP-7g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jan 2024 15:05:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOIA8-0000BH-7u; Fri, 12 Jan 2024 09:05:33 -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 1rOI9g-0008Gj-3I for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 09:05:06 -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 1rOI9f-000762-R5 for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 09:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOI9d-0002mZ-Lz for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 09:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2024 14:05:01 +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.170506824410618 (code B ref 65734); Fri, 12 Jan 2024 14:05:01 +0000 Original-Received: (at 65734) by debbugs.gnu.org; 12 Jan 2024 14:04:04 +0000 Original-Received: from localhost ([127.0.0.1]:35226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOI8h-0002lB-TW for submit@debbugs.gnu.org; Fri, 12 Jan 2024 09:04:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOI8e-0002kY-I9 for 65734@debbugs.gnu.org; Fri, 12 Jan 2024 09:04:02 -0500 Original-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 1rOI8Z-0006lA-Sh; Fri, 12 Jan 2024 09:03:55 -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=2m1Et1jvfv6IEay8U8dwPNOaOafFIbEVXo8zRwPiYKk=; b=RTYjkghPuo7Z nbR3lfemzbO1Xg+sBeHD0eU/6UbIQsjze87uo8kQNOHQ/saU6HCM8IeQebaFo4xR74i/uHmMo1DLA ZhWpPXkIDTB/9ewQr7a+SXSOok9hEvCJQlMtKbbyjYZo5ZbUFlWTGkXf4xk/5fW77+Hcr2SWgKr17 vTKIM/oq9y0jZvWkQMT8FwCSvdERjvRdl/yGbC0Ce13nao3VlBfD+/vLoIWkt9hgvhocjrR0wMkia tlm+cr4vUig50q4NjXQES3nojP4se7IAmPlGfecg1+cuodDp6lHZGiXZomB27VPUUejxOZQqNA3SN L0LlUeCtbhdWIWV/cPhIvg==; In-Reply-To: <87v87ypvyh.fsf@localhost> (message from Ihor Radchenko on Fri, 12 Jan 2024 12:39:18 +0000) 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:278028 gmane.emacs.orgmode:159037 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, emacs-orgmode@gnu.org, 65734@debbugs.gnu.org, > manikulin@gmail.com, iota@whxvd.name > Date: Fri, 12 Jan 2024 12:39:18 +0000 > > Eli Zaretskii writes: > > >> I think that I see what you mean. What we can do to achieve this is > >> changing `kill-line-query-function' into abnormal hook > >> `kill-line-query-functions'. Then, `kill-line'/`kill-whole-line' will > >> use (run-hook-with-args-until-success 'kill-line-query-functions) to > >> decide whether to show a query. > >> > >> Does it make sense? > > > > It might, yes. But do we have to _replace_ the hook? cannot we have > > both? I.e. if the new one is defined, call it, otherwise call the old > > one. That would be more backward-compatible, I think. > > May you please elaborate what you mean by "old one"? kill-line-query-function