From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40845: SVG rendering issues Date: Sat, 22 Aug 2020 22:17:53 +0300 Message-ID: <83y2m68p7i.fsf@gnu.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> <20200822185756.GC89421@breton.holly.idiocy.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, 40845@debbugs.gnu.org, pipcet@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 22 21:19:09 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 1k9Z2i-0000cD-Uw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 21:19:08 +0200 Original-Received: from localhost ([::1]:36704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Z2i-0002jY-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 15:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Z2c-0002jB-DT for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9Z2c-0006cU-4S for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9Z2c-0003jZ-17 for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Aug 2020 19:19:01 +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.159812389214270 (code B ref 40845); Sat, 22 Aug 2020 19:19:01 +0000 Original-Received: (at 40845) by debbugs.gnu.org; 22 Aug 2020 19:18:12 +0000 Original-Received: from localhost ([127.0.0.1]:51508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Z1o-0003i6-C9 for submit@debbugs.gnu.org; Sat, 22 Aug 2020 15:18:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Z1m-0003hr-Ch for 40845@debbugs.gnu.org; Sat, 22 Aug 2020 15:18:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41926) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Z1g-0006Vd-Cm; Sat, 22 Aug 2020 15:18:04 -0400 Original-Received: from [176.228.60.248] (port=1794 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k9Z1f-0006zF-QG; Sat, 22 Aug 2020 15:18:04 -0400 In-Reply-To: <20200822185756.GC89421@breton.holly.idiocy.org> (message from Alan Third on Sat, 22 Aug 2020 20:57:59 +0200 (CEST)) 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:185993 Archived-At: > Date: Sat, 22 Aug 2020 20:57:59 +0200 (CEST) > From: Alan Third > Cc: cpitclaudel@gmail.com, 40845@debbugs.gnu.org, pipcet@gmail.com > > 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 think you want to modify note_mouse_highlight so that it sets up the frame's mouse-highlight info for image glyphs, like it currently does for character glyphs. It's possible this is all that needs to be done; if not, we should see how to change show_mouse_face and its subroutines to display images with mouse-highlight. Let me know if you need more guidance.