GNU bug report logs - #15437
24.3.50; mouse-face extends to an extra character when inside overlay after-string

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15437 in the body.
You can then email your comments to 15437 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15437; Package emacs. (Mon, 23 Sep 2013 01:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Sep 2013 01:49:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
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 dgutov <at> yandex.ru-20130915234226-zgv2u05owx40i0ig
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:	Ubuntu 13.04




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 23 Sep 2013 09:20:03 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Gutov <dgutov <at> yandex.ru>:
bug acknowledged by developer. (Mon, 23 Sep 2013 09:20:05 GMT) Full text and rfc822 format available.

Message #10 received at 15437-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 15437-done <at> debbugs.gnu.org
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 <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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15437; Package emacs. (Mon, 23 Sep 2013 09:31:01 GMT) Full text and rfc822 format available.

Message #13 received at 15437 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: dgutov <at> yandex.ru
Cc: 15437 <at> debbugs.gnu.org
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:30:22 +0300
> Date: Mon, 23 Sep 2013 12:19:54 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 15437-done <at> debbugs.gnu.org
> 
> Fixed in trunk revision 114439.

Err... make that 114440.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15437; Package emacs. (Mon, 23 Sep 2013 10:10:01 GMT) Full text and rfc822 format available.

Message #16 received at 15437 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 15437 <at> debbugs.gnu.org
Subject: Re: bug#15437: 24.3.50;	mouse-face extends to an extra character
 when inside	overlay	after-string
Date: Mon, 23 Sep 2013 13:09:41 +0300
On 23.09.2013 12:30, Eli Zaretskii wrote:
> Err... make that 114440.


Looks fixed. Thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 21 Oct 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.