From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Question about display engine Date: Wed, 07 Aug 2019 19:41:25 +0300 Message-ID: <83ftmdapxm.fsf@gnu.org> References: <20190807005411.qfzzpz5cjrajbwn2@Ergus> <83o911aukn.fsf@gnu.org> <20190807153220.ssijgjxnf6dszz45@Ergus> <83k1bpasic.fsf@gnu.org> <20190807155738.yviofsumjjhqueci@Ergus> <83imr9ar9f.fsf@gnu.org> <0975890b-37b4-428d-f6e5-5dcf894fb6be@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="228794"; mail-complaints-to="usenet@blaine.gmane.org" Cc: spacibba@aol.com, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 07 18:42:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvP0o-000xPa-5s for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 18:42:06 +0200 Original-Received: from localhost ([::1]:43510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvP0n-0002oU-69 for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 12:42:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45128) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvP0J-0002ky-8R for emacs-devel@gnu.org; Wed, 07 Aug 2019 12:41:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hvP0J-0002y3-0S; Wed, 07 Aug 2019 12:41:35 -0400 Original-Received: from [176.228.60.248] (port=1991 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hvP0I-0005Vb-2i; Wed, 07 Aug 2019 12:41:34 -0400 In-reply-to: <0975890b-37b4-428d-f6e5-5dcf894fb6be@gmx.at> (message from martin rudalics on Wed, 7 Aug 2019 18:25:37 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239233 Archived-At: > Cc: emacs-devel@gnu.org > From: martin rudalics > Date: Wed, 7 Aug 2019 18:25:37 +0200 > > > And, of course, this leaves the more general problem I described in my > > message: what is the right behavior for extending the face that > > crosses a newline. (Note that the display engine in general doesn't > > know whether a face that doesn't end before a newline will or won't > > continue on the next screen line.) > > Recalling your proposal > > (defcustom face-extend-to-window-edge t > "Non-nil means extend face of last character on line to window edge. Thanks for the reminder. > Certain face attributes, if present in the face of the last character > of a line and different from those of the default face, cause the > empty space following the end of text on the line to be drawn with > those attributes, to give the empty space appearance similar to that > of the preceding text. These attributes are those which affect the > background of a face: `:background', `:stipple', `:box', `:underline', > `:overline', and `:strike-through'. By default, if the face of a > line's last character has any of these attributes, and the value is > different from that of the default face, the empty space following the > line's text will be drawn in the face of the last character. This is inaccurate, I think: on GUI frames only :background and :box are extended all the way, the rest only "infect" the glyph we add for displaying the newline. > This variable allows fine-tuning which attributes trigger the face > extension. The default value of t means any of the mentioned > attributes will cause face extension. The value of nil means face > extension is turned off. A value that is a list of attributes will > extend the face only if any of the attributes from the list are > present in the last character's face. Note that only attributes from > the above list are meaningful in list values of this variable.") > > in the discussion of Bug#23574. And I think we need to consider the case of the region using one of the attributes that are not in the list.