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: Thu, 20 Jun 2024 07:58:36 +0300 Message-ID: <86o77wnrb7.fsf@gnu.org> References: <868qz3ssu0.fsf@gnu.org> <201c2285-012f-fa29-03b5-78a2e26aa134@gmail.com> <86plsfqvme.fsf@gnu.org> <66e7c49d-adb6-186f-18f1-33eee9f668ad@gmail.com> <86h6dqqy63.fsf@gnu.org> <86iky5p34b.fsf@gnu.org> <8269125b-7e9c-ffde-be9e-4a07c42ce6a5@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9612"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71605@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 20 06:59:12 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 1sK9t9-0002IO-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jun 2024 06:59:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sK9sy-00019K-Pu; Thu, 20 Jun 2024 00:59: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 1sK9sw-00015s-Pc for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:58:58 -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 1sK9sw-0002AE-Hu for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:58:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sK9t0-0000Ty-59 for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:59: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: Thu, 20 Jun 2024 04:59: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.17188595301825 (code B ref 71605); Thu, 20 Jun 2024 04:59:02 +0000 Original-Received: (at 71605) by debbugs.gnu.org; 20 Jun 2024 04:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:43436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK9sn-0000TN-Px for submit@debbugs.gnu.org; Thu, 20 Jun 2024 00:58:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK9sl-0000T6-KV for 71605@debbugs.gnu.org; Thu, 20 Jun 2024 00:58: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 1sK9sc-00028c-MJ; Thu, 20 Jun 2024 00:58:38 -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=GS2o5GIyQa9GhAbbZb+8MLokIFnvTxDPLzYJCVXbdW0=; b=R6KZZ3ldSr/f acvB2E4NSQwRy9uZSTXfoy8EsvrQUQFwi2yEPXT40Otu0D/jxBmMpZcw1Idb+DjMsAS7L8D/Hcx3G 2n1pcPB+WNxJADD7oLnh+qwNhyyR/Hb45hFZ/Ss8qZBMS1yuDHRt9CYeSQINUXgXABKPD45tWm9eF SGPGDGdJN5Dql01/7lyynHMraz+6t5ZSE6wLHMDHLF/wEaDbi4yKL7f7BFSNvjJVdH5E94srwWWta iGoGryV00oxjd4EcCGm7zlsEd/JfVpvEbTZcvC3RzcRkznAHDAVKyWQFCWtoQvaqN/SzI3HXU54Nl VJQ7Hgs6fX4kP7wNuZa0eQ==; In-Reply-To: <8269125b-7e9c-ffde-be9e-4a07c42ce6a5@gmail.com> (message from Jim Porter on Wed, 19 Jun 2024 12:53:33 -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:287527 Archived-At: > Date: Wed, 19 Jun 2024 12:53:33 -0700 > Cc: 71605@debbugs.gnu.org > From: Jim Porter > > On 6/19/2024 4:45 AM, Eli Zaretskii wrote: > > If both the first line of the paragraph and the rest are aligned on > > that width, they will all line up. IOW, the idea is to make the text > > of all the lines :align-to to the same column number, like this: > > > > * some text > > some other text > > > > Then you don't care about the actual pixel width of "* ". > > Just so I'm sure I understand this: the idea is that the buffer's > contents are "* some text some other text" and then we set the :align-to > property on "some text some other text" so that the result is displayed > like this? > > +---- Here is the align-to column > v > * _some text > ___some other text Yes. > The underscores represent the space added by :align-to. In practice, the > first line might not have any extra space from :align-to, but the > pixel-width of "* " could be less than 2 * > for variable-pitch fonts. The value calculated for :align-to needs to make sure that never happens. > I think that would work, provided :align-to were fixed so that it could > handle wrapping again. Stay tuned. > (And so long as we're ok with there being a bit of extra space after > the first-line prefix when using some fonts, but I don't see why > that would be an issue.) We _should_ be ok with some extra white space, because that's what I see in word processors all around me. Their indentation of the itemized lists always indents by more than just one SPC after the item symbol (bullet or number or letter).