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 Subject: bug#71605: 30.0.50; [PATCH] Support variable-width text in 'visual-wrap-prefix-mode' Date: Tue, 18 Jun 2024 15:39:09 +0300 Message-ID: <86bk3yqvbm.fsf@gnu.org> References: <835c7897-d276-b0fe-6d1e-8e6a20cac2bb@gmail.com> <4e596683-665e-8e2c-c201-9ddcb476d195@gmail.com> <86le33qr8d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 71605@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 18 14:40:34 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 1sJY8Y-00049T-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jun 2024 14:40:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJY80-0008NC-Dt; Tue, 18 Jun 2024 08:40:00 -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 1sJY7z-0008Mu-PU for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2024 08:39:59 -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 1sJY7z-0004SQ-I4 for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2024 08:39:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJY82-0001mU-2Z for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2024 08:40: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: Tue, 18 Jun 2024 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71605-submit@debbugs.gnu.org id=B71605.17187143906813 (code B ref 71605); Tue, 18 Jun 2024 12:40:02 +0000 Original-Received: (at 71605) by debbugs.gnu.org; 18 Jun 2024 12:39:50 +0000 Original-Received: from localhost ([127.0.0.1]:42156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJY7p-0001lo-MX for submit@debbugs.gnu.org; Tue, 18 Jun 2024 08:39:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJY7l-0001lX-0w for 71605@debbugs.gnu.org; Tue, 18 Jun 2024 08:39:48 -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 1sJY7c-0004RX-Rh; Tue, 18 Jun 2024 08:39:36 -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=fwcsFQLr2ia+xbiLpFhGBgPAZG2M1EV20OkaG/qTfMk=; b=f85bqIZq6vm9 9ASGFQ61aSbX6eILrs7RucbHaoRbDhSz2VTao+SRlQHTK4vzM+pdrlY24smNPCdemKe5+LI67fs8e Pn3TlE0qHeP42S2dakGgXS8afYLKioklanfCTtfsnISbkzc2M2I7YsMCpd/hMPauMr8zVV1p/vU4J Ad2rSV5g4SNT0ZwNfo8awAD1r5Cuv89Dtq5J6jTYJeaq7gsVJJs1eQxkPGHSG7YwTeA6fdHFqWiMW Oi4k8n2N+UNXGGCIyB6/DseitK5pf9HfA7qG1eNNWJCSH/U75eS4Wyc/kI/rVePfT8uhinyNvzvbr i89uKyDKjiMIX4fexWmlwA==; In-Reply-To: (message from Jim Porter on Mon, 17 Jun 2024 13:08:47 -0700) 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:287434 Archived-At: > Date: Mon, 17 Jun 2024 13:08:47 -0700 > Cc: luangruo@yahoo.com, 71605@debbugs.gnu.org > From: Jim Porter > > >> Which actually gives me an > >> idea... what if the wrap-prefix is just the original text like "* " and > >> we fontify it to be invisible? It's not part of the buffer and you can't > >> select it anyway, so it doesn't really matter what the text is so long > >> as it's not visible.) > > > > I don't think I follow: how is this relevant to the issue at hand? > > I was thinking you could wrap "* this is some text" like so: > > * this is > * some text > > The second "* " would come from the wrap-prefix, but we'd make the > foreground transparent (or the same color as the background) so it > wouldn't be visible. Then it would always take up the same width as the > first "* " because it's the same string with the same font and everything. If it's transparent, some change in the faces could reveal it, which I think will be perceived as a bug. And invisible text cannot take up screen estate, so I'm not sure how would that help...