From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Question about display engine Date: Fri, 30 Aug 2019 11:34:33 +0200 Message-ID: <20190830093433.vo47qhokur47wceo@Ergus> References: <20190826081819.cuhm3tpw3lq3m5jh@Ergus> <83mufwfe8o.fsf@gnu.org> <20190827222025.p2cbjwak4ysi3ept@Ergus> <3ea328a6-2b35-5a01-77a1-bbf9ff7f16f2@gmx.at> <83lfvdd5f7.fsf@gnu.org> <20190828163142.kds3mfnyrjvxxxcj@Ergus> <83v9uhb3ud.fsf@gnu.org> <20190828181958.364qto4kv3hsqtqt@Ergus> <831rx3bzbs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="229421"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 30 11:36:16 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 1i3dKJ-000xXO-Mr for ged-emacs-devel@m.gmane.org; Fri, 30 Aug 2019 11:36:16 +0200 Original-Received: from localhost ([::1]:57532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3dKI-0006QU-4S for ged-emacs-devel@m.gmane.org; Fri, 30 Aug 2019 05:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37629) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3dIz-0006Q6-7P for emacs-devel@gnu.org; Fri, 30 Aug 2019 05:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3dIv-0004pH-5N for emacs-devel@gnu.org; Fri, 30 Aug 2019 05:34:50 -0400 Original-Received: from sonic307-53.consmr.mail.ir2.yahoo.com ([87.248.110.30]:46577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3dIu-0004dz-Ns for emacs-devel@gnu.org; Fri, 30 Aug 2019 05:34:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1567157685; bh=pUf6YABKPxi70cyBOzxNevw05Gxd8TGiqk4SXve0HpQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=sOQ42PBt1AujT+lGADjugmzwi3G5NhRdOkXssrmxiJ5fo2gmgqDR/0nh7vO1+Iqfl9/NWVf/VOWif/66zCfvBqDP6XedIk8sAj2H6zCJAxd8JKi5cpjCA4EjPb0CdZf9Gvu/zfaM2XSWY4MtsIBSVQ9twtly9TVDWuaxqs+AgAAFLDBI99pEe8Hymb2NQFrR70NqJnTKqq5yJUzj4U9m6nBeaOQRbzxuglLRyQPrTLnssNP9w8ZVZCx3tG7FRu07cpZuzuO+FTyrrZIEj5i8TAn+tI5szT3qa5pj/jwJhDCzfAMpbsQhirvOGMJW4moTEh37t3BbSrtmrH/JneVFMA== X-YMail-OSG: gduT8uAVM1nAgyxEQFakHocrM6szDx1srSglaVZ5LPsjxxLIPVisufRRc0dSTl7 BR1w_1GcKxcrKW_dzcKqZN_aG1jF5Wv0roJd8uzkjyzISV7nfQv.ypTSSA9l9M2aQbKumWTvGm8v OCOhN8R1SAt3fF5PjtacQUbBLIyRN.ZqBWJ1Ie0trx728OQo5EvfZWNLaN2rQ1w_CxoKBuGEgcmY SGySAs14rhnrJWx48w5bGMQc2vapTCRzUvu2tOWAdyAp_OjJlxqSUWSzOM1H6IEg3b_SbE8OvCVJ y8r14jr5pBrD1D9vdUDHxfG0Zeh8fIohKnZrwqdqpDeAHBeZlb_Mt1YNiGmWwIAcG.Dw85TrELVB HOoSh33ZDYKboPucUFDmRx9JbTWAm5VWUCtSZtxRtiiX4w7DkmpMPkB_BM0lsem5yvDlClItq_1H 7d_jTGpahoy4tk_7v6D2PoMCzx3N6cXVCoYsmgk_Qf7v1VYoNN8ZIiK6W4VxXuoEuxkZkBbE.fla zWLws62TMqGcR1nnG4woHXf4mE7Umt26MRftVOLh8f0pVXiCti87sRJj2MjS8CEVO.e0k40CyjmU t9NiKRcd6zeCJV6eAJ9XKI0jMFSpGuY_8rJ4GSlj7FlyChqSgtQJ4W5qiuRRaFkLTUh6Xp4tZe6S tpaj3a1t7NCyT6e9qssX0MiONOBINH0JPqQJ257l0epM8.WF8foFv9BJVG_4TcRd4bwOGFtynKZ2 NQd.pBmn7YYj9fJ1RSrnAOExbzk_JlIxX4N9bIvHgDauTChv5G6r9zhKxePMkRjEjTJ1lWfRzRdh 9CyKWFbQfDt588xGZmJd3cdpJ4SYUh4QeDqo0NyGJH Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Fri, 30 Aug 2019 09:34:45 +0000 Original-Received: by smtp422.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0f63ef0dc1a3a4147f139c0a866b5dba; Fri, 30 Aug 2019 09:34:41 +0000 (UTC) Content-Disposition: inline In-Reply-To: <831rx3bzbs.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 87.248.110.30 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:239698 Archived-At: Sorry Eli I still don't see anything clear. It seems that only you have enough knowledge to understand how this solution may work. Because I am missing a lot of details. I will actually stop trying, because I can't implement something I don't understand how it works and I am wasting a precious amount of time. On Thu, Aug 29, 2019 at 09:28:55PM +0300, Eli Zaretskii wrote: >> Date: Wed, 28 Aug 2019 20:19:58 +0200 >> From: Ergus >> Cc: rudalics@gmx.at, emacs-devel@gnu.org >> >> >> 1) Base face sets background and extend; and face sets only background. >> > >> >The background of the base face will be extended. >> > >> >> But AFAIU the actual merging rules now will create a new face (if not >> there already) that will have the new background > >No. At the point which we are discussing, only background of faces >which have the :extend bit set get merged. So the background of a >face without that bit will simply not get merged. > >You will probably need to write a variant of merge_face_ref (or add an >extra argument to the existing function) such that background color >attribute of a face is not merged unless the :extend bit of the face >is set; and similar for underline and other relevant attributes we >discussed.