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.devel Subject: Re: Variable pitch text filling Date: Thu, 02 Dec 2021 11:34:34 +0200 Message-ID: <83pmqfpcyd.fsf@gnu.org> References: <87ilwft1ph.fsf@gnus.org> <87k0go8ios.fsf@gnus.org> <83bl20s2dp.fsf@gnu.org> <87wnkojmny.fsf@gnus.org> <837dcos1oy.fsf@gnu.org> <87o860jm27.fsf@gnus.org> <831r2ws0jf.fsf@gnu.org> <87fsrcjkik.fsf@gnus.org> <83y254qkq3.fsf@gnu.org> <87y254i56e.fsf@gnus.org> <83tufsqkd3.fsf@gnu.org> <87tufsi3x7.fsf@gnus.org> <83o860qi1i.fsf@gnu.org> <87czmgi2ec.fsf@gnus.org> <83lf14qgpu.fsf@gnu.org> <87fsrcgmdu.fsf@gnus.org> <83ilw8qg2s.fsf@gnu.org> <874k7sglur.fsf@gnus.org> <83fsrcqeq2.fsf@gnu.org> <874k7ro20z.fsf@gnus.org> <83r1avpf6g.fsf@gnu.org> <87tufrl70i.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 02 10:35:48 2021 Return-path: Envelope-to: ged-emacs-devel@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 1msiVH-0002QW-VG for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 10:35:48 +0100 Original-Received: from localhost ([::1]:53680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msiVG-0008C4-Oy for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 04:35:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiUK-0007V7-Az for emacs-devel@gnu.org; Thu, 02 Dec 2021 04:34:48 -0500 Original-Received: from [2001:470:142:3::e] (port=36394 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiUK-0001ab-2g; Thu, 02 Dec 2021 04:34:48 -0500 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=vDMBN6jca2nRtzeSz4EmEp2beaPYL6CvWNtfMWKgIHs=; b=lQVtSuD3DBAX LU7YjCFdsOkv+j2Uv8+qA5vE72Wq1pDojhIRHAFY2GMeK9DfQFmUh4zzSEwXTAQFxS3op4kb9PmvT iM42oYOVbjNeLO5msLFw86PSaaGke49ox8KRXadWMP/EdysqVidA8UiKWCwcx3YuF7WMRiICT5vRk kMvjFVYp6F1gJkVWYONyGut/jc7Ar9QbqezSkFRDI/XKM9SLZcq2yEVQErI5Rfvnnvsw5wMnS9OlI lIDpwSdGGkVyAEQvXj4f3Z3GdN7+KpxgO+nNwwaC1vetBX5JwtsckJanPQql7ljip1Jk0Y5bk1spd JBV877lHH7gqxL04bbqUsg==; Original-Received: from [87.69.77.57] (port=2435 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiUJ-0001VW-Pq; Thu, 02 Dec 2021 04:34:48 -0500 In-Reply-To: <87tufrl70i.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 02 Dec 2021 09:56:29 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280729 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Thu, 02 Dec 2021 09:56:29 +0100 > > Eli Zaretskii writes: > > >> But they don't. They shouldn't be shorter than a normal character here, > >> because that makes them difficult to click, but they will change size > >> individually. > > > > Putting a min-width property on each of them will achieve that goal, > > right? > > The goal is not to make the individual characters in U:-- not change > displayed width. To do that, you'd have to make each character as wide > as the widest glyph in the font, and that will be really ugly. Not the widest glyph in the font, only the widest of the characters that can be displayed in that place on the mode line. Which is a small set, so there's no problem finding the widest one, even statically and in advance. > The goal is to make the "-" wide enough that you can click it, which > is why they should have a char-spacing property of "one normal > character". But it is also ugly to have those characters move when we display a different character in one of those places. Someone asked to make sure such a shift doesn't happen, so that users could click on the same place more than once without moving the mouse, to toggle the setting back and forth. If we don't make each of these characters a separate string with its separate min-width, we cannot make sure such shifts don't happen. So I think the solution of making each of these characters a separate string with a separate min-width, which is "wide enough for our purposes" is a better solution, which achieves both goals at the same time.