unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Evgeny Zajcev <lg.zevlg@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Hollow cursor under images
Date: Mon, 4 Mar 2019 23:27:25 +0300	[thread overview]
Message-ID: <CAO=W_ZouBxHmd1gbE_bmdqmmn2fCr=kJXYZhrvZNDfSFUkp8LA@mail.gmail.com> (raw)
In-Reply-To: <838sxue6fa.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]

пн, 4 мар. 2019 г. в 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)))))
> >   (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

[-- Attachment #2: Type: text/html, Size: 2735 bytes --]

  reply	other threads:[~2019-03-04 20:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-04 18:14 Hollow cursor under images Evgeny Zajcev
2019-03-04 19:05 ` Eli Zaretskii
2019-03-04 20:04   ` Evgeny Zajcev
2019-03-04 20:22     ` Eli Zaretskii
2019-03-04 20:27       ` Evgeny Zajcev [this message]
2019-03-05  3:24         ` Eli Zaretskii
2019-03-04 22:36     ` Alan Third
2019-03-05 10:19       ` Evgeny Zajcev
2019-09-14 11:48         ` Evgeny Zajcev
2020-01-27 12:54           ` Evgeny Zajcev
2020-01-27 18:33             ` Eli Zaretskii
2020-01-28  8:46               ` Evgeny Zajcev
2020-01-28 18:16                 ` Eli Zaretskii
2020-01-28 11:55               ` Evgeny Zajcev
2020-01-28 18:22                 ` Eli Zaretskii
2020-02-03 11:24                   ` Evgeny Zajcev
2020-02-07 10:12                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO=W_ZouBxHmd1gbE_bmdqmmn2fCr=kJXYZhrvZNDfSFUkp8LA@mail.gmail.com' \
    --to=lg.zevlg@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).