From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Hollow cursor under images Date: Mon, 04 Mar 2019 22:22:17 +0200 Message-ID: <838sxue6fa.fsf@gnu.org> References: <83bm2qea01.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="150484"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Evgeny Zajcev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 04 21:37:13 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0uKm-000d2N-Qr for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2019 21:37:12 +0100 Original-Received: from localhost ([127.0.0.1]:60853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0uKl-0007js-Pd for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2019 15:37:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0u6R-0005Ei-RP for emacs-devel@gnu.org; Mon, 04 Mar 2019 15:22:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0u6R-0006R6-LB; Mon, 04 Mar 2019 15:22:23 -0500 Original-Received: from [176.228.60.248] (port=1311 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h0u6P-0007UO-VI; Mon, 04 Mar 2019 15:22:23 -0500 In-reply-to: (message from Evgeny Zajcev on Mon, 4 Mar 2019 23:04:10 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:233831 Archived-At: > From: Evgeny Zajcev > Date: Mon, 4 Mar 2019 23:04:10 +0300 > Cc: emacs-devel > > (let ((svg (svg-create (frame-char-width) (* 2 (frame-char-height))))) > (svg-circle svg 10 10 10 :fill-color "red") > (insert (propertize "X" 'face 'region > 'display (list '(slice 0.0 0.0 1.0 0.5) > (svg-image svg :scale 1.0 > :ascent 'center > :mask 'heuristic))))) > > Background of the image gets color from `region' face, but when the cursor is under the image it gets hollow > type and still background of `region' face is visible. Not on my system. > I just realized, that if I create image that fits into single char, such as: > > (let ((svg (svg-create (frame-char-width) (frame-char-height)))) > (svg-circle svg 10 10 10 :fill-color "red") > (insert (propertize "X" 'face 'region > 'display (svg-image svg :scale 1.0 > :ascent 'center > :mask 'heuristic)))) > > Then cursor behaves as expected initially! It does not get hollow type and background gets cursor color. I > expected the same for images that do not fit into single char I see no difference between these two cases. The second image is larger, but other than that, no difference regarding colors.