emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hollow cursor under images


From: Evgeny Zajcev
Subject: Re: Hollow cursor under images
Date: Mon, 4 Mar 2019 23:27:25 +0300



пн, 4 мар. 2019 г. в 23:22, Eli Zaretskii <address@hidden>:
> From: Evgeny Zajcev <address@hidden>
> Date: Mon, 4 Mar 2019 23:04:10 +0300
> Cc: emacs-devel <address@hidden>
>
> (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.

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

--
lg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]