unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay after-string
@ 2013-09-23  1:47 Dmitry Gutov
  2013-09-23  9:19 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2013-09-23  1:47 UTC (permalink / raw)
  To: 15437


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.

In GNU Emacs 24.3.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4)
 of 2013-09-16 on axl
Bzr revision: 114298 dgutov@yandex.ru-20130915234226-zgv2u05owx40i0ig
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:	Ubuntu 13.04





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay after-string
  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
  2013-09-23  9:30   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2013-09-23  9:19 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: 15437-done

> 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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay after-string
  2013-09-23  9:19 ` Eli Zaretskii
@ 2013-09-23  9:30   ` Eli Zaretskii
  2013-09-23 10:09     ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2013-09-23  9:30 UTC (permalink / raw)
  To: dgutov; +Cc: 15437

> Date: Mon, 23 Sep 2013 12:19:54 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 15437-done@debbugs.gnu.org
> 
> Fixed in trunk revision 114439.

Err... make that 114440.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15437: 24.3.50; mouse-face extends to an extra character when inside overlay after-string
  2013-09-23  9:30   ` Eli Zaretskii
@ 2013-09-23 10:09     ` Dmitry Gutov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2013-09-23 10:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 15437

On 23.09.2013 12:30, Eli Zaretskii wrote:
> Err... make that 114440.


Looks fixed. Thanks!





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-23 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-09-23  9:30   ` Eli Zaretskii
2013-09-23 10:09     ` Dmitry Gutov

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).