пн, 4 мар. 2019 г. в 22:05, Eli Zaretskii : > > From: Evgeny Zajcev > > Date: Mon, 4 Mar 2019 21:14:06 +0300 > > > > I've got `cursor-type' set to `box', however when cursor is under image > it displays as if it was `hollow', i.e. > > image margins and non-mask pixels are displayed with the background > color of face under cursor, not the > > cursor color. > > What is "face under cursor" in this context? > I have text property `face' attached to the region which image occupies, consider: (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. 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 > > Is this intended behaviour? > > If I understand what you described (and I'm not surer I did), then > no. You should see the cursor color. > -- lg