From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: Re: Hollow cursor under images Date: Mon, 4 Mar 2019 23:27:25 +0300 Message-ID: References: <83bm2qea01.fsf@gnu.org> <838sxue6fa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005dc21e05834a96ab" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116038"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 04 21:30:22 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 1h0uEA-000U3V-CE for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2019 21:30:22 +0100 Original-Received: from localhost ([127.0.0.1]:60704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0uE9-0002mG-62 for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2019 15:30:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0uBe-0001S2-LN for emacs-devel@gnu.org; Mon, 04 Mar 2019 15:27:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0uBc-0002Xw-KN for emacs-devel@gnu.org; Mon, 04 Mar 2019 15:27:46 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:35319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0uBW-0002Th-Tu; Mon, 04 Mar 2019 15:27:40 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id t13so5513667lji.2; Mon, 04 Mar 2019 12:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2miUyDDuaP/X0DGmfNca/DTbAohUr3mE08dHTjIhSaI=; b=AkEb5EgD52VQ/utzveT8E5HoL0OAroIFPftAC1ScG0BFns3L/zMYD+YmC2166Xmwev EOUt7uZjvIMeCKAXsxvWouSKLzBR6W4mau8H8HtQEKoN6RHwVN1f+IQX0cmys5OkhErb x9h52AibimeuYGR5V7lWqTQ+y3bSbd/yaH107AZFPQBfoQWaZbLW3Ru39zSFJM0KPjb5 0WVS4bqOgDsls1lCoiIovluoTan6fFRZahavA0TIQjcWwrpSq0UYeuf/RrcZF2FJxa0z b578iPcfJm+WRpsHdXAU6Uh0WIdiwxCdga4FDEzLuDtruOP+ourVYjcQGLFGfw4JZwS1 +n9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2miUyDDuaP/X0DGmfNca/DTbAohUr3mE08dHTjIhSaI=; b=qVazdS3NPhl9XSNpnj7HMbwBFlpY+wHkPdmaa6bJXZXudSvH4ixcBzQUzrZBS0y4e3 cAYpXZ2WhPS/gIY7MvXdrUxeoLch9ANcWnT7ANfNOdUD/fFf2MjyjswQPVbSJIEd/RZv wTntWisQzHMM/W1Cz/rExDpzM9GkvGKSKS3ehwco3vorHV/6nFgi3DQ/hWlnMB60nAma kO6pV00BAp3SPNb0QgXMty9lMU4nO0S69CDqUoExiPDFspV86IlEDy9szeRN6AvvwcHk JmiPP6N11jFwuhmg3Q8Y99XyHV+MSsHcY5ii6fCJslXvV6KMKthMlwUUrQzXv4ePSdt6 Fpag== X-Gm-Message-State: APjAAAWpY6TJ7FpjK7i/7zR29v/cQAgBgsk9aq+MPkzzB0JDCkQ8ilhT bRBsht8ynn+h1cFPmFn+u6qsW6TdK4tjGpNdWkIjHpeQ X-Google-Smtp-Source: APXvYqwGJALlGW6B3icmY4SESJHjJRUb+ZVgwk/nOLEq6NNhLbPT9t0v5XlHaQt2hhAf8hOxRcT1Y9StXoT1WGwiKUY= X-Received: by 2002:a2e:8003:: with SMTP id j3mr11641058ljg.17.1551731257097; Mon, 04 Mar 2019 12:27:37 -0800 (PST) In-Reply-To: <838sxue6fa.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::234 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:233830 Archived-At: --0000000000005dc21e05834a96ab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=BF=D0=BD, 4 =D0=BC=D0=B0=D1=80. 2019 =D0=B3. =D0=B2 23:22, Eli Zaretski= i : > > 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, suc= h > 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. > Cool! What is your Emacs version? I'm using GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-11-07 --=20 lg --0000000000005dc21e05834a96ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=D0=BF=D0=BD, 4= =D0=BC=D0=B0=D1=80. 2019 =D0=B3. =D0=B2 23:22, Eli Zaretskii <eliz@gnu.org>:
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Mon, 4 Mar 2019 23:04:10 +0300
> Cc: emacs-devel <emacs-devel@gnu.org>
>
> (let ((svg (svg-create (frame-char-width) (* 2 (frame-char-height)))))=
>=C2=A0 =C2=A0(svg-circle svg 10 10 10 :fill-color "red")
>=C2=A0 =C2=A0(insert (propertize "X" 'face 'region >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0'display (list '(slice 0.0 0.0 1.0 0.5)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (svg-image s= vg :scale 1.0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:ascent 'center
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:mask 'heuristic)))))
>
> Background of the image gets color from `region' face, but when th= e 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, su= ch as:
>
> (let ((svg (svg-create (frame-char-width) (frame-char-height))))
>=C2=A0 =C2=A0(svg-circle svg 10 10 10 :fill-color "red")
>=C2=A0 =C2=A0(insert (propertize "X" 'face 'region >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0'display (svg-image svg :scale 1.0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:ascent 'center
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:mask 'heuristic))))
>
> Then cursor behaves as expected initially!=C2=A0 It does not get hollo= w type and background gets cursor color.=C2=A0 I
> expected the same for images that do not fit into single char

I see no difference between these two cases.=C2=A0 The second image is
larger, but other than that, no difference regarding colors.

Cool! What is your Emacs ve= rsion?

I'm using GNU Emacs 27.0.50 (build 3, x= 86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-11-07

<= /div>
--
lg
<= /div>
--0000000000005dc21e05834a96ab--