all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 15437-done@debbugs.gnu.org
Subject: bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay	after-string
Date: Mon, 23 Sep 2013 12:19:54 +0300	[thread overview]
Message-ID: <83y56nj3np.fsf@gnu.org> (raw)
In-Reply-To: <87wqm848c4.fsf@yandex.ru>

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Mon, 23 Sep 2013 04:47:55 +0300
> 
> 
> 1. Evaluate this definition:
> 
> (defun mouse-face-test ()
>   (interactive)
>   (goto-char (point-min))
>   (insert "aaaaaaaa")
>   (let ((o (make-overlay (point-min) (point))))
>     (overlay-put o 'invisible t)
>     (overlay-put o 'after-string
>                  (concat (propertize "bbbb"
>                                      'face 'next-error
>                                      'mouse-face 'highlight)
>                          "aaaa"))))
> 
> 2. Open a new buffer, type `M-x mouse-face-test'.
> 
> 3. Hover the mouse cursor above the "b" letters. When the cursor is
> away, they're highlighted with the `next-error' face, and the "a"
> letters are untouched. But when the mouse hovers, the first of the "a"
> letters is also highlighted, with the `highlight' face. It shouldn't be.

Fixed in trunk revision 114439.





  reply	other threads:[~2013-09-23  9:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23  1:47 bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay after-string Dmitry Gutov
2013-09-23  9:19 ` Eli Zaretskii [this message]
2013-09-23  9:30   ` Eli Zaretskii
2013-09-23 10:09     ` Dmitry Gutov

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=83y56nj3np.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=15437-done@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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.