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: Wed, 28 Aug 2019 14:19:03 +0200 Message-ID: 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> 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="239492"; 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 Wed Aug 28 14:29:30 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 1i2x4r-00105a-VA for ged-emacs-devel@m.gmane.org; Wed, 28 Aug 2019 14:29:30 +0200 Original-Received: from localhost ([::1]:35892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2x4o-0000Xl-Mb for ged-emacs-devel@m.gmane.org; Wed, 28 Aug 2019 08:29:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49708) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2wuw-0000ok-5D for emacs-devel@gnu.org; Wed, 28 Aug 2019 08:19:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2wuv-0002GQ-2J for emacs-devel@gnu.org; Wed, 28 Aug 2019 08:19:14 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:48103) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2wuu-0002EE-Ld; Wed, 28 Aug 2019 08:19:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566994745; bh=OmWe16gx+cOtTDP2o8x5GWoA3v9JfpJFgJVOtYbfC/c=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=I3zWzB8eieboFSjpi6DOkOs4Wf0udTjGCYhScZqkyOgWS9TG3WjyxL0su0uEAr1Tq ehOinTygf7CViGDEW5aPnPQv7sieyat60XKzT4wnxlD50Hv62CFk5lPAua7pym5toI 0I1+3GyRJryjCZJvxrHYNNSuzIzyeTY4ZiH7rs9E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.75]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M6Ue3-1i9oX33IWf-006yjT; Wed, 28 Aug 2019 14:19:04 +0200 In-Reply-To: <83lfvdd5f7.fsf@gnu.org> Content-Language: de-DE X-Provags-ID: V03:K1:kpRIcqjeYbdyAhNCnfu8PekvHRvF7DbOfnfTqIW3wIuyBSOn+zG pXV40AFKa9RC6nqJ+lB2NdM9Nc3qIYwXMZLO81QuteEKG1MAc/SGE/EnqqGfVMQp10Hg8Qq EToeEvM/1LFMlvOTGeVOC4RajbLqB7HW3tlvLG+r1JX2XYrCIt5lCgjhFUAqssUzh3owD+k +xmMH/CM/uipGbEy4q9GQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:4YDTQmOJF8U=:7uDybV+vgRE3wNaDXm96S3 52H2W0SN0CSj6Cdof7jZzW+E82dO+ZgTjFLw5BtP8eDQGHI7RGDd1+NgJ7khMdxabHwuRNMDM tcNlGujMjIVYgoTbwj49l5KCfExNXzFz3eyKUmHniJGYgdvN8NOKNYMQ7VwoyYju7/L+j5Wwq NSI2c89rUPNozDfCdk0H2qSKT+oQNgxKyd7XSrpxZxNMJnY1iT42e4aEz417UKHAr/QNzcR93 Sg0P5jQeQPF7/VWUYfnn3EkqXE8wNcrwMBMkYlc8oAmbha2H51HCbGnwzbc6t1xRtqV1wUt0X +kxJpwfrU8ZtmQTAQnxkLO+5+/iS+BYc968qbn/tsZ7zQ3XGAUHVNGo0p8SYJW2Q2GG9M9KXZ tTNnC7BT1EaRfu4QU9VPgiqucX/DlmdviDF0X+31U3TEFs8e8Zkoea2FnFvf1TGlWjQ7vcUpZ he9MSC3+TYaIENpVHlbjpvEG7AEQd82DWR/IVh5VID97tuhSsVG8QTZjCwVOko5mR4uvc6pZa 7MlBKD3ZxREbvpTRKgWOG1qz083bjcE7Oq77iGGWTpKJXCBR46Jbyz7eSsFGFy6bXjb5u2S+D ZSAaEqfzWbdNk+9STgcOr3OU9/pXqUayGK7N4LSmLw/cXOjRDU3HFvLcIui1t+DCfe6kZ7w7N 3MW5Mk3z0jiH3wUjyEOZocvncr+YkeL/MDTJt1kcHIDX5g7mvWmlmhOMKRGbHzScEofCBL7pa LNM9PNxCVSFykqemX4a1xAMHoIJU+jsB0Nv3QIq2kfgVJMDRlPZsaCgWKQ2FQlNiKMcbjkXK X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 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:239642 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. > I don't see a problem here. A user who doesn't want the region face's > background extend to the end of line wants only text (as opposed to > whitespace after the newline) to have the region's background, and > that's true both to regions that cross line boundaries and regions that > end at a newline. I agree that we don't want to extend the region's background. But the question I raised above still stands. We could make :extend sticky in the sense that once an :extend for the background has been defined, it will apply to all higher priority faces as well. This would make specifying a nil :extend value idempotent to not specifying a value at all as you (IIRC) proposed earlier. But the mechanism then becomes considerably less powerful. >> Maybe the display engine could consult, with the stop position >> privilege triggered by the newline character in mind, whether the >> extend_background false setting of the current face could result in >> applying another, lower-priority face specified by font-locking and >> consult the extend_background bit of the corresponding realized face. > > I don't think I understand this proposal. Let's talk about it when we both see a problem here. martin