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: Wed, 06 Sep 2023 15:20:19 +0300 Message-ID: <837cp3333w.fsf@gnu.org> References: <87il8pao4l.fsf@whxvd.name> <87tts8vrpb.fsf@localhost> <83h6o84yz1.fsf@gnu.org> <87ledju2j7.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20153"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65734@debbugs.gnu.org, emacs-orgmode@gnu.org, iota@whxvd.name To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 14:21:10 2023 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 1qdrWw-0004yr-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 14:21:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdrWp-0001b2-EQ; Wed, 06 Sep 2023 08:21:03 -0400 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 1qdrWn-0001Vx-H5 for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:21:01 -0400 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 1qdrWn-00028j-8X for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdrWo-0007yp-8u for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2023 12:21: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.169400284330639 (code B ref 65734); Wed, 06 Sep 2023 12:21:02 +0000 Original-Received: (at 65734) by debbugs.gnu.org; 6 Sep 2023 12:20:43 +0000 Original-Received: from localhost ([127.0.0.1]:33326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdrWV-0007y7-5W for submit@debbugs.gnu.org; Wed, 06 Sep 2023 08:20:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdrWR-0007xr-6d for 65734@debbugs.gnu.org; Wed, 06 Sep 2023 08:20:41 -0400 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 1qdrWK-000258-BD; Wed, 06 Sep 2023 08:20:32 -0400 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=iwCg2S+NTMzWg5DtD5wjH10ZNUrRV8TLD8QRUli2ckg=; b=BaKQd27o28sD 8bWwL/rTqd3OUT8TcZ3NznVQAY2ecMGckd9PUPdnUwdtoyxkJB+PoGOChP1c0d8axYQYXuJ8NK/0Q KKDykseoOhv+j5fLifkcuMjBAEAhu+8nnXC5FUGVSeinsV+bERlwms+0FjFwZc8WQquXTOQDsSOQt iUv3reJX3YX8Afr4zJpFEBU3AhKxHHDuzf3/z2ZrqQjdcq+Z4mf9UPbjOIA+EjoARUlB5mViW1ZNV SpS4MuFrDO/RMsS8Lgvt5mwJkMI2ouOnVBtmUfaf6oda08xAJQc4WrsdnYmjJZUGgWgzszOqNE+kz KUlCDKLjcnMENkWSU9wYUA==; In-Reply-To: <87ledju2j7.fsf@localhost> (message from Ihor Radchenko on Wed, 06 Sep 2023 08:30:36 +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:269531 gmane.emacs.orgmode:157130 Archived-At: > From: Ihor Radchenko > Cc: iota@whxvd.name, 65734@debbugs.gnu.org, emacs-orgmode@gnu.org > Date: Wed, 06 Sep 2023 08:30:36 +0000 > > Eli Zaretskii writes: > > >> In addition, `org-kill-line' acts specially in certain scenarios: > >> > >> For > >> * Heading text :tag1:tag2: > >> > >> `org-kill-line' will keep and re-align ":tag1:tag2:": > >> > >> * Heading :tag1:tag2: > >> > >> It would be nice if we could express such behavior without overriding > >> the `kill-line' command. > > > > This could be handled by a suitable extension to end-of-visible-line. > > For example, introduce a new text property which end-of-visible-line > > would then handle the same as it currently handles invisible text. > > I am not sure if I like the idea of text property - marking all the tags > in buffer with text property is expensive. Then perhaps just a special value for buffer-invisibility-spec, or some other simple variation of a property Org already uses? > What about something like `end-of-visible-line-function'? That is also a possibility, but it will then affect kill-line _anywhere_ in the buffer, whereas a text property can have a more localized effect. Are you sure kill-line will need this customization on the whole buffer?