From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sIubCr1u+GTr3wAAG6o9tA:P1 (envelope-from ) for ; Wed, 06 Sep 2023 14:21:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sIubCr1u+GTr3wAAG6o9tA (envelope-from ) for ; Wed, 06 Sep 2023 14:21:17 +0200 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 0CA2161C03 for ; Wed, 6 Sep 2023 14:21:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BaKQd27o; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694002877; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iwCg2S+NTMzWg5DtD5wjH10ZNUrRV8TLD8QRUli2ckg=; b=igaXZS3fAZOQ2zKQIpKbAkDMrehR1iylHcRLGJZUVfKa7vybaRHrpM7WDTmxmdPf9lea8c SVl5YV2cQMH+zgdOR+ZFqSX4ZPHAngkKfO8ERTZ/eKmw705GcHVa54/lSN30i1JJSEK2iO 5zQtWWCNQmTLfWAZ2z4XexrJqULdcN6k8J0urRV5L+SiYJOtnxJ4v2ZoI+VZn10AY+Q6W5 d0y1649rSCz4Aqi5VzwY0MzeDWK0oolgdHCht1vCZpNBAGlfUtV2Xi2CMxpLkv+uIzktnM nhb1U2EuGFZJbRN+p5UqnVQ3BtR5BeQUWHmrZLABHkvWgGt4CDFNjzTCzhnkOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BaKQd27o; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694002877; a=rsa-sha256; cv=none; b=ef8fjG3TofWbA4Xn+fiNwIs6TWrHhQlJXyszZpBGcioSQxYakYXL5ceFDn4tP1SEhwan8n +Hy56SlrtP1ZqbCO27mvcA1lQOR9tIulsqbh5TsSsz1IkPkSs2qb6uS5tI4Kgdf2ab9SFL gEWHe7BhaxDpjHN0NWBdeJ5buuRYAbb93Twe4eSPC2avF6Pego1VT+GHprDcwpVHaBJjaJ Z/cL2pkpEczfpjBDtVNjEl1+gpISkKZZRj9DUzRC50ksAlW1h8lOYuzeuZYcqCPQzx6St0 Ir7m9Dpn6qnUqq+kdIZ9k4208qhmGlSsPt4G/BiYepUwwo3xK9gW5a2jLrjOgg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdrWY-0001G3-PK; Wed, 06 Sep 2023 08:20:46 -0400 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 1qdrWL-0001Dp-3h for emacs-orgmode@gnu.org; Wed, 06 Sep 2023 08:20:34 -0400 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==; Date: Wed, 06 Sep 2023 15:20:19 +0300 Message-Id: <837cp3333w.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko Cc: iota@whxvd.name, 65734@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: <87ledju2j7.fsf@localhost> (message from Ihor Radchenko on Wed, 06 Sep 2023 08:30:36 +0000) 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/)] References: <87il8pao4l.fsf@whxvd.name> <87tts8vrpb.fsf@localhost> <83h6o84yz1.fsf@gnu.org> <87ledju2j7.fsf@localhost> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 0CA2161C03 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -7.97 X-Spam-Score: -7.97 X-TUID: mkTwqaL4tRUQ > 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?