[Top][All Lists]

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

bug#489: Mouse highlighting bug

From: Chong Yidong
Subject: bug#489: 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")
    (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 via email to

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