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: Sat, 07 Sep 2019 10:37:07 +0300 Message-ID: <83o8zw5zh8.fsf@gnu.org> References: <318675867.1913640.1567711569517.ref@mail.yahoo.com> <318675867.1913640.1567711569517@mail.yahoo.com> <97f66744-8481-084a-ef23-2c50444e1f05@gmx.at> <20190906093117.25qfim4kcrmiqunk@Ergus> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="168879"; 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 Sat Sep 07 09:37:27 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 1i6VHj-000hiv-0A for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2019 09:37:27 +0200 Original-Received: from localhost ([::1]:33648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6VHc-0004j0-Pe for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2019 03:37:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48394) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6VHQ-0004ir-8W for emacs-devel@gnu.org; Sat, 07 Sep 2019 03:37:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i6VHP-0005Sm-UK; Sat, 07 Sep 2019 03:37:07 -0400 Original-Received: from [176.228.60.248] (port=1083 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i6VHP-00044A-0y; Sat, 07 Sep 2019 03:37:07 -0400 In-reply-to: (message from martin rudalics on Sat, 7 Sep 2019 08:52:56 +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:239914 Archived-At: > Cc: eliz@gnu.org, emacs-devel@gnu.org > From: martin rudalics > Date: Sat, 7 Sep 2019 08:52:56 +0200 > > When I set the :extend attribute of the default face, everything seems > to work as expected. The problem is that if, in the earlier mentioned, > > /* Update the faces id and extend. */ > it->face_id = new_face_id; > > if (FACE_EXTENSIBLE_P (new_face)) > it->extend_face_id = new_face_id; > > no extensible new face is found, the assignment fails and the old > region background stays in place for the rest of the window. So it > seems that you have to make sure that _some_ default background is > always assigned here in case no face applied has the :extend attribute > set. The default face should always be merged into the face used for line extension, that goes without saying.