GNU bug report logs - #489
Mouse highlighting bug

Previous Next

Package: emacs;

Reported by: Chong Yidong <cyd <at> stupidchicken.com>

Date: Thu, 26 Jun 2008 21:50:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 489 in the body.
You can then email your comments to 489 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#489; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: emacs-pretest-bug <at> gnu.org
Subject: Mouse highlighting bug
Date: Thu, 26 Jun 2008 17:39:02 -0400
There seems to be a bug is how mouse-face highlighting handles extending
faces to the end of the line:

(global-set-key [f1]
  (lambda () (interactive)
    (switch-to-buffer "asdf")
    (erase-buffer)
    (insert "123456\n890")
    (put-text-property 4 9 'mouse-face 'highlight)
    (put-text-property 4 9 'face (list :underline t))))

Put the mouse over the region with mouse-highlight, then remove it.
Result: the space after the first line becomes underlined.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Mon, 22 Jun 2009 02:05:12 GMT) Full text and rfc822 format available.

Notification sent to Chong Yidong <cyd <at> stupidchicken.com>:
bug acknowledged by developer. (Mon, 22 Jun 2009 02:05:12 GMT) Full text and rfc822 format available.

Message #10 received at 489-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 489-done <at> debbugs.gnu.org
Subject: Re: Mouse highlighting bug
Date: Sun, 21 Jun 2009 22:03:37 -0400
> (global-set-key [f1]
>   (lambda () (interactive)
>     (switch-to-buffer "asdf")
>     (erase-buffer)
>     (insert "123456\n890")
>     (put-text-property 4 9 'mouse-face 'highlight)
>     (put-text-property 4 9 'face (list :underline t))))
>
> Put the mouse over the region with mouse-highlight, then remove it.
> Result: the space after the first line becomes underlined.

I've checked a fix for this into the trunk, which involves changing
x_draw_glyph_string so that the underline (and overline) is not extended
into the end-of-line padding.  This is similar to the behavior of
strike-through.



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 05 Aug 2009 14:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 244 days ago.

Previous Next


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