Fixed Partial highlighting of wrapped overlay bug

reported by Ralf Angeli.
This commit is contained in:
Kim F. Storm 2005-01-18 12:46:04 +00:00
parent a348a963d3
commit 87954aeb75

View file

@ -40,8 +40,6 @@ are meaningless. What's that trying to do?
* BUGS
** Incomplete overlay mouse-face highlight bug (Ralf Angeli, Oct 18)
** Ange-ftp should ignore irrelevant IPv6 errors:
Message-Id: <4121-Tue23Mar2004165249+0100-piet@cs.uu.nl>
@ -153,32 +151,6 @@ interrupting I can get a backtrace, here's an example:
Update: Maybe only reveals itself when compiled with GTK+
** Partial highlighting of wrapped overlay
From: Ralf Angeli <angeli@iwi.uni-sb.de>
Date: Mon, 18 Oct 2004 19:09:19 +0200
If you put
(let* ((length (+ (- (window-width) (current-column)) 40))
(start (point))
(end (+ (point) length))
(string (make-string length ?x))
ov)
(insert string)
(setq ov (make-overlay start end))
(overlay-put ov 'mouse-face 'highlight)
(overlay-put ov 'display string))
into the *scratch* buffer and type `C-x C-e' with point at the last
parenthesis, you will get a string which does not fit into the line
and has to be wrapped. If you move over it with your mouse, you
should see that only the part on the second line is being highlighted.
The full string is highlighted only if the 'display property is not
set.
* DOCUMENTATION
** Document Custom Themes.