all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>
Cc: 21500@debbugs.gnu.org
Subject: bug#21500: 24.5; Graphical glitch with display property lines in GUI Emacs
Date: Thu, 17 Sep 2015 07:57:39 +0300	[thread overview]
Message-ID: <837fnp7id8.fsf@gnu.org> (raw)
In-Reply-To: <20150916203402.GA3145@odonien.fritz.box>

[Please don't remove the bug address from the CC list.  We want this
discussion to be recorded by the bug tracker.]

> Date: Wed, 16 Sep 2015 22:34:02 +0200
> From: Vasilij Schneidermann <v.schneidermann@gmail.com>
> 
> > What did you expect to see instead, and why?
> I did expect to always see a visible line, even with point on that space
> character.  What happens instead is that by putting point on it its face
> is used in reverse-video, but only for the actual width of the space
> character, not its declared one.

That's the default Emacs implementation of cursor display on GUI
frames: we erase the character at point, then draw that character
again with cursor colors (normally, in reverse video).  For
"white-space" characters, such as TAB and the stretch of white space
created by the 'space' display property, Emacs by default draws the
cursor using the width of the font's SPC character.  And that's
exactly what you saw.

> > If you set x-stretch-cursor to a non-nil value in the GUI session,
> > does the result explain what happens?
> Sort of, with it turned on the reverse-video effect goes over the
> declared width of the space character.

Isn't that what you originally expected to see?

> I was wondering whether one could ensure Emacs always renders a face in
> a readable way if it is turned practically invisible.

I don't understand: how does "invisible" come into play here?  Are you
talking about faces whose foreground and background are the same color?

> In fact, isn't the `:distant-foreground` property there for a
> similiar reason?

Yes.  But the face needs to have that as part of its definition.

Anyway, I see no relation between what you were wondering about and
the effect of cursor display that I believe was the trigger for this
bug report.  If you have questions about face rendering, I suggest to
ask them on emacs-devel.

Can we now close the bug?





  parent reply	other threads:[~2015-09-17  4:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-16 19:37 bug#21500: 24.5; Graphical glitch with display property lines in GUI Emacs Vasilij Schneidermann
2015-09-16 20:12 ` Eli Zaretskii
     [not found]   ` <20150916203402.GA3145@odonien.fritz.box>
2015-09-17  4:57     ` Eli Zaretskii [this message]
2015-09-17  6:34       ` Vasilij Schneidermann
2015-09-17  7:05         ` Eli Zaretskii
2015-09-26  8:14           ` Eli Zaretskii
2015-09-26  9:35             ` Vasilij Schneidermann
2015-09-26 10:04               ` Eli Zaretskii
2015-09-26 10:56                 ` Vasilij Schneidermann
2015-09-26 11:02                   ` Eli Zaretskii
2015-09-26 12:17                     ` Vasilij Schneidermann
2015-09-26 12:14                   ` Johan Bockgård
2015-09-26 12:22                     ` Vasilij Schneidermann
2015-09-26 13:33                       ` 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

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

  git send-email \
    --in-reply-to=837fnp7id8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21500@debbugs.gnu.org \
    --cc=v.schneidermann@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.