emacs-devel
[Top][All Lists]
Advanced

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

Re: Hollow cursor under images


From: Eli Zaretskii
Subject: Re: Hollow cursor under images
Date: Mon, 04 Mar 2019 22:22:17 +0200

> 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.



reply via email to

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