From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#40845: SVG rendering issues Date: Sat, 22 Aug 2020 20:57:59 +0200 (CEST) Message-ID: <20200822185756.GC89421@breton.holly.idiocy.org> References: <09a19c49-91cb-8024-8c34-53d846d98313@gmail.com> <20200503141348.GA4071@breton.holly.idiocy.org> <83r1w1ovc3.fsf@gnu.org> <20200509142727.GA42881@breton.holly.idiocy.org> <20200509195415.GA44624@breton.holly.idiocy.org> <835zcx314r.fsf@gnu.org> <20200515214047.GB55337@breton.holly.idiocy.org> <20200822161510.GB89421@breton.holly.idiocy.org> <835z9aaaef.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, 40845@debbugs.gnu.org, pipcet@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 22 20:59:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9YjO-00009Q-Lj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 20:59:10 +0200 Original-Received: from localhost ([::1]:59972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9YjN-0007J7-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 14:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9YjG-0007Iy-I0 for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 14:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9YjG-0004Ma-9D for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9YjG-0000y4-7B for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 14:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Aug 2020 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40845 X-GNU-PR-Package: emacs Original-Received: via spool by 40845-submit@debbugs.gnu.org id=B40845.15981226913653 (code B ref 40845); Sat, 22 Aug 2020 18:59:02 +0000 Original-Received: (at 40845) by debbugs.gnu.org; 22 Aug 2020 18:58:11 +0000 Original-Received: from localhost ([127.0.0.1]:51471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9YiR-0000wq-1o for submit@debbugs.gnu.org; Sat, 22 Aug 2020 14:58:11 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:48558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9YiM-0000wI-RZ for 40845@debbugs.gnu.org; Sat, 22 Aug 2020 14:58:09 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 51BAC430; Sat, 22 Aug 2020 20:58:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1598122680; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=1231; bh=ChAP6KyX1Fh1ETMCjvvE2KxFizVuBX+16FlTjQyTkxw=; b=m/1HPANgxxwDt9O+mNyGBb9YUoh0yaQon1yajeapdsYVzPNdpZxajekssytVQnfD npbWSHKd4zp3xOp91TzYote3FhZg1RtyQMY4tU3+/4UxWhA04LT4DEHLqy267N0/aMc D3TCLyQBVGqhuWNBQE5A2lXlsZKACCpPeGx973VMIXEHHxl5LVmVNlBQ2/TfPTcaAVj +Hiiu5J8JPqKQlqWBdi+jQ+Asq5hR1VaITgaaIBke8wMhzdbS+6QHo5TnmdkAGV//hv XBeFDOXzO8czybCBATBTbqcWIRHGAzDllQG/WQeYBYazYToKExVErceA2q0wYOdKjZ7 UH580Md94w== Original-Received: by smtp.mailfence.com with ESMTPA ; Sat, 22 Aug 2020 20:57:57 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 62B3C2024C593E; Sat, 22 Aug 2020 19:57:56 +0100 (BST) Mail-Followup-To: Alan Third , Eli Zaretskii , cpitclaudel@gmail.com, 40845@debbugs.gnu.org, pipcet@gmail.com Content-Disposition: inline In-Reply-To: <835z9aaaef.fsf@gnu.org> X-ContactOffice-Account: com:241649512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185989 Archived-At: On Sat, Aug 22, 2020 at 07:54:48PM +0300, Eli Zaretskii wrote: > > Date: Sat, 22 Aug 2020 18:15:15 +0200 (CEST) > > From: Alan Third > > > > I still don't know how to use the mouse face. I couldn't see any way > > to detect if it's in use when we first load the image in xdisp.c. > > Can you please remind me what was the problem? The bug discussion is > very long, and I didn't have time/patience to find the mouse face > bits. No problem. Basically, if you try Clement's original example, when you move the mouse over the image the background colour doesn't change to match the rest of the line. I'm picking up the background colour from the face stored in "it" in push_prefix_prop or handle_single_display_spec in xdisp.c. As far as I can tell one or both of these are the only places we can define the image with the face colours as this is where we actually load the image. The problem is that I don't see any way to work out if the current image should use the background colour from the mouse face. I know that later on we can do (s->hl == DRAW_MOUSE_FACE), but I don't think those structures are built yet? I've fixed the mistakes you pointed out. Thanks. -- Alan Third