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: prettify-symbols-mode, derived modes, and compose-region Date: Fri, 05 Mar 2021 17:20:46 +0200 Message-ID: <83ft19y6cx.fsf@gnu.org> References: <83k0qmzit9.fsf@gnu.org> <587ee071-985b-450a-2df7-0b4bb0f97b48@posteo.net> <83blbyysox.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39635"; mail-complaints-to="usenet@ciao.gmane.io" Cc: d.williams@posteo.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 05 16:30:47 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 1lICPf-000AEY-49 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Mar 2021 16:30:47 +0100 Original-Received: from localhost ([::1]:50148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lICPe-0001vZ-1f for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Mar 2021 10:30:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lICGG-0003lQ-R9 for emacs-devel@gnu.org; Fri, 05 Mar 2021 10:21:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43079) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lICGE-0004VZ-RW; Fri, 05 Mar 2021 10:21:02 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lICGD-0006zy-T2; Fri, 05 Mar 2021 10:21:02 -0500 In-Reply-To: (message from Stefan Monnier on Fri, 05 Mar 2021 10:14:50 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:266023 Archived-At: > From: Stefan Monnier > Cc: d.williams@posteo.net, emacs-devel@gnu.org > Date: Fri, 05 Mar 2021 10:14:50 -0500 > > > If the width of the additional space is known, there's also the :width > > display property. > > Indeed, there's `:width` but in the case under discussion the desired > with of the space is something like `1 - width-of-previous-char`, IOW > something ELisp can't know when it puts the text property. Yes, it can: shr.el uses these capabilities. > I think it would take something like a `width` property that is > non-replacing (i.e. can be applied to non-spaces and doesn't hide the > text to which it's applied). Yes, that's what I had in mind in my other message.