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: Mon, 29 Nov 2021 17:20:37 +0200 Message-ID: <83h7bvugxm.fsf@gnu.org> References: <87ilwft1ph.fsf@gnus.org> <837dcv2c2c.fsf@gnu.org> <875ysft0l3.fsf@gnus.org> <835yse3n01.fsf@gnu.org> <87lf1ars0f.fsf@gnus.org> <83czmm11t0.fsf@gnu.org> <87h7byrplm.fsf@gnus.org> <83a6hq0zey.fsf@gnu.org> <87lf19r7uv.fsf@gnus.org> <83tufxy7f0.fsf@gnu.org> <83o865xuf3.fsf@gnu.org> <87v90b136m.fsf@gnus.org> <83tufvukjj.fsf@gnu.org> <875ysbxal0.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40937"; 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 Mon Nov 29 16:34: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 1mrig4-000ATx-Jw for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 16:34:48 +0100 Original-Received: from localhost ([::1]:41840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrig3-0004ek-0t for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 10:34:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mriSB-00050i-22 for emacs-devel@gnu.org; Mon, 29 Nov 2021 10:20:27 -0500 Original-Received: from [2001:470:142:3::e] (port=47652 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 1mriS9-0001nL-7N; Mon, 29 Nov 2021 10:20:25 -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=124+8fYdqX25vVflQv6t84jBfOk+nZzEzovwvPdbOyU=; b=rDLvpxWIkDgc s36oNTfEA3HUv+24W4T2k3Va9dwiChLpSKwgeWSkSYWR5va7IER2En/wjX6WlpDc7LIWqpO0FXcOq C4P/3RYXBb1bTuktTjVxptjj0ToIG0TAv66QlIfJ6cuovB3x4IBfhYOubiOeu4o8cRpca4U0AnGec JMhlL3kIXRl6JT0SIKV+oN29EPIxxbVFRJ9iZa8J8BQmKFyi2v7IG4mD64//17A+7Oq4XevI4W5/W wUsKq5H7SwBXjTvU+lGKThqh5J3V6dOF+Z/m0bNZSDcsW5nyADS6WUSW7k48/cG0sgN25JTGHhHJ8 1rRLcRsOeF96e/P2xOHmzg==; Original-Received: from [87.69.77.57] (port=3349 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 1mriS8-0006am-Qu; Mon, 29 Nov 2021 10:20:25 -0500 In-Reply-To: <875ysbxal0.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 29 Nov 2021 16:09:31 +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:280496 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Mon, 29 Nov 2021 16:09:31 +0100 > > Your definition of "normal character width" is clearly superior to what > we have in Emacs today, though, so I wonder whether we could change > that. That is, today if you say `display (space 2)' you get a multiple > of the frame column width. We could change that to be the ASCII font > width of the current face instead, like what you suggested for this new > feature. > > This would be incompatible, but I doubt it'd break anything much in > practice. Perhaps we could eat the cake and also have it: the 'space' spec already supports a notion of "units". Currently, we have: UNIT ::= in | mm | cm | width | height where "width" and "height" are for the default face's font. So we could add a new "unit", say, "face-width" or "font-width" (and similarly with height), to mean dimensions of the character of the font used by the underlying face.