From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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: Tue, 09 Jan 2024 11:48:24 -0500 Message-ID: References: <87il8pao4l.fsf@whxvd.name> <87tts8vrpb.fsf@localhost> <83cyyw4of7.fsf@gnu.org> <875y4ovct9.fsf@localhost> <875y04yq9s.fsf@localhost> <878r4yy2wu.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15138"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-orgmode@gnu.org, Eli Zaretskii , 65734@debbugs.gnu.org, Max Nikulin , iota@whxvd.name To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 09 17:49:23 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 1rNFI1-0003fo-A7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jan 2024 17:49:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNFHf-0003Gg-C8; Tue, 09 Jan 2024 11:48:59 -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 1rNFHb-0003Fs-8i for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 11:48:55 -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 1rNFHb-0008KU-0Q for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 11:48:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNFHh-0006a6-Jc for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 11:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2024 16:49: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.170481892125189 (code B ref 65734); Tue, 09 Jan 2024 16:49:01 +0000 Original-Received: (at 65734) by debbugs.gnu.org; 9 Jan 2024 16:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:40766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNFHM-0006YB-Py for submit@debbugs.gnu.org; Tue, 09 Jan 2024 11:48:41 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNFHL-0006XS-JC for 65734@debbugs.gnu.org; Tue, 09 Jan 2024 11:48:40 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2692380DB3; Tue, 9 Jan 2024 11:48:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1704818906; bh=xKY2a275EZsnbx13QiOhunmJ8ldGEzGhXN7G0Eb4X5A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BVmGYr7+JXWcPEuYmBQE+wIUrEJX5vlGY4HupgGJgVayXz2nEC1b+8h8ROpixVLG0 z8N3dRA8IoWMW78qf4Wqer+/usShG0Ge2BQJNlbpzxVMjSU6p6dBaVjuGsYuyv4Mrq A2fNc0j6RhKndQYJT3+bdQjl3bt0FmGtgxpSLldUxlpBfjKEG6P5xOaI6AF8iQqs6+ cuOYPcBsIlzZsYjY/PNHvNRkZeQyYpMAJWM44mLUuY8mIFtLogqTXbVn5o2geS8NO/ SJbh3Hixh9+yfUHsWFHS0886XTLpviKHfgLkn2OqCeGBXhi9ew7a3zyKo+OGCQq1Y7 tZ58HwwzXX5gw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F230B80CC9; Tue, 9 Jan 2024 11:48:25 -0500 (EST) Original-Received: from pastel (65-110-221-238.cpe.pppoe.ca [65.110.221.238]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AE6F6120426; Tue, 9 Jan 2024 11:48:25 -0500 (EST) In-Reply-To: <878r4yy2wu.fsf@localhost> (Ihor Radchenko's message of "Tue, 09 Jan 2024 14:52:49 +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:277636 gmane.emacs.orgmode:158941 Archived-At: >> That's why I said "rule of thumb": there can be tradeoffs. >> In practice 99% of Emacs commands modify only a single contiguous chunk >> of text, so the tradeoff comes into play fairly rarely. > It would be nice if this advice were added to the relevant docstrings. Not sure exactly which advice you're referring to (the text you quoted above is misleading: it would encourage the naive reader to just do the work in `after-change-functions` since it's called only once per command anyway, which they already instinctively do and which is exactly what we don't want), nor which docstring you're referring to. Stefan