GNU bug report logs -
#15437
24.3.50; mouse-face extends to an extra character when inside overlay after-string
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Mon, 23 Sep 2013 01:49:02 UTC
Severity: normal
Found in version 24.3.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 15437-done <at> debbugs.gnu.org (full text, mbox):
> From: Dmitry Gutov <dgutov <at> 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.
This bug report was last modified 11 years and 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.