From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Question about display engine Date: Thu, 29 Aug 2019 09:45:50 +0200 Message-ID: <160dfd3f-60d4-8758-df65-2165c552f39e@gmx.at> References: <20190819161305.uwlgsm44yjrmul3o@Ergus> <83pnl1kskj.fsf@gnu.org> <20190819213024.ciukp34xmgrzh7yn@Ergus> <83imqskjyb.fsf@gnu.org> <20190825102205.rxhmu3bukraywhok@Ergus> <83lfvhh6dn.fsf@gnu.org> <20190826043145.pm5aplrxna5hwcso@Ergus> <83y2zgfjzs.fsf@gnu.org> <20190826081819.cuhm3tpw3lq3m5jh@Ergus> <83mufwfe8o.fsf@gnu.org> <20190827222025.p2cbjwak4ysi3ept@Ergus> <3ea328a6-2b35-5a01-77a1-bbf9ff7f16f2@gmx.at> <83lfvdd5f7.fsf@gnu.org> <83woexb3yu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202820"; mail-complaints-to="usenet@blaine.gmane.org" Cc: spacibba@aol.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 29 09:46:39 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 1i3F8h-000qaY-1A for ged-emacs-devel@m.gmane.org; Thu, 29 Aug 2019 09:46:39 +0200 Original-Received: from localhost ([::1]:46578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3F8f-0003xJ-PS for ged-emacs-devel@m.gmane.org; Thu, 29 Aug 2019 03:46:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49217) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3F82-0003ww-1o for emacs-devel@gnu.org; Thu, 29 Aug 2019 03:45:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3F80-0001cN-Gm for emacs-devel@gnu.org; Thu, 29 Aug 2019 03:45:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:36999) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3F7z-0001bQ-R9; Thu, 29 Aug 2019 03:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1567064750; bh=G4yWjDu/adkuEDWSKORHpahmOMgiGU9U2hdPnjCXpK8=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=kUOwTY3zjisSKX6DVSkrn6ivlR/6r2FOn5K9nHGRrOaT8jsqLlYlGAXbpjwz4Rbvd 9K0OEb2WSyjKq+0Q6UddTGFO+ue/ojnZtrPFcM9V4ujDNYunOwjTZ7fB3FBc4/q4lT Zn1dwoa6+me35hmBL6SnsOPKjw2suyU619hwj6FU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.63]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LnPnu-1ihHRQ2sr0-00hggY; Thu, 29 Aug 2019 09:45:50 +0200 In-Reply-To: <83woexb3yu.fsf@gnu.org> Content-Language: de-DE X-Provags-ID: V03:K1:rZHlT3WwRyIVJEJFm+Ab30dy9RulVNjBWPCvdxgdZw95x9LKeWU lKp5Hzo9cVM/wVhmtRmizkAl9gqOKVs4Cm8uIrB7eSQi0lOtJpBFVKUJFFQk+hGOaFNTYdI XGbneaWYMDDbtMx/1XyLijz38Scz+XoPpvhwZN1Nk9TypbdmF7+Z4IzgAqjVSB5bt/TUyyw jv6oB9h3lXMi/t9jAMWUw== X-UI-Out-Filterresults: notjunk:1;V03:K0:e/ZnjvKu/4o=:W73bqFXVWQTUa8TAZO4dKX oNUm19unNLnlRiN0JrGdCPADfCf4oAKeMy0+P1Ov7pyw9CREv1nBibqDdUpbcfHZDcgTv17Mo MOKQhig7chFnnG+XeS9ae5sfb4IITA5KDyd3t81wbiUspRMRftMfjHtUSGZ2Q3qJ6S++byhlF wkALZ7UZ/4Q/RNVKv0xv2lISDvXPIw+/z0tjq+E6hbYY9MKlv0my+CHHvySZUSuD+BFi7Vnnr JCvLoYJiVyml856aH4riptSG+xovGkxua6mB2LgC185mx45zPfToIORY3mTbezOUxgy3x58Yq uZNxy5OJA5DnjAfye/uGSELsQGRTuxtp8Mld0r8Fq9YmL/y9qUsrDnGkreq1Vb+ac3CIbd4eR R9WBMVZCsGZqRzhw4mFMa///2FLJUSqLpwt02JCX/BEU+0O+sHDVeiQ16cWrreBegjl/gnRy1 eAMX0GQbkqh/3LY0LmxAGC5CixPc1g5fQlZrmDvM8E0bDB0kahnErImyzOn9Slo4I7IfLztcc DqZkzguwXYX8c2zWEeSiUdYP1H+WqEQnUbO7IfD4aNmoR+ay/coRp0BLDgIgUdXTTJCdiYyCa 8b8rqBBH/TA+xr01pVvsS1r2dpKJcJw4H1zuEav/mgLah1lAsZC7ecPmwGZLd4nuQtLCnx5P1 PFBtstB9HTTKX6BSgPafeSUfSf8PRIQCYbErO9GlXcPdFzdltrEuV9SmSBL5SeaIC4ffc3LSX ITsb2IEsF4h/2PGiWsOZlCP7QO3C39CCclliAkmKL8R36J5JRMAo3CZfoqmLDeGsjJC8tngD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 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:239666 Archived-At: >> > I think we should simply not merge the background color of the region >> > face when its extend bit is reset. Then the merged face will not have >> > that background color. >> >> Then which background color would we use? That of the comment was >> lost when setting up the current face for the iterator. > > The one that was there before the region was activated. But where do we get that from? Consider a three lines C buffer with code on the first line and a two-line comment covering the remaining lines with the region covering the entire buffer. Hence, the spaces following the comment on the second line should be drawn with the background of the comment face. But when the display engine gets there, the respective face was not even realized. > Which one is > that will be determined by the order in which the merging process > merges the faces, and by the faces themselves -- whether they do or > don't define a background color, and whether they do or don't have the > :extend bit set. The merging process will kick in iff we treat the newline character at the end of line 2 as a stop position. Since no text property changes there, I don't see how this could happen. The only stop position in this buffer (apart from its beginning and end) is where the comment starts on line 2. >> I agree that we don't want to extend the region's background. But the >> question I raised above still stands. > > Did I answer it now? If so, I didn't understand the answer yet. martin