emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15437: closed (24.3.50; mouse-face extends to an e


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15437: closed (24.3.50; mouse-face extends to an extra character when inside overlay after-string)
Date: Mon, 23 Sep 2013 09:20:03 +0000

Your message dated Mon, 23 Sep 2013 12:19:54 +0300
with message-id <address@hidden>
and subject line Re: bug#15437: 24.3.50; mouse-face extends to an extra 
character when inside overlay   after-string
has caused the debbugs.gnu.org bug report #15437,
regarding 24.3.50; mouse-face extends to an extra character when inside overlay 
after-string
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15437: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15437
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; mouse-face extends to an extra character when inside overlay after-string 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.

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 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:     Ubuntu 13.04



--- End Message ---
--- Begin Message --- Subject: Re: 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
> From: Dmitry Gutov <address@hidden>
> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]