* Stephen J. Turnbull:
>>>>> "Ren" == Ren <Ren> writes:
Ren> Extents with 'mouse-face 'highlight will highlight
Ren> begin-glyph but not end-glyph. Is this intentional?
Probably. I think whether a glyph gets highlighted depends on whether
that boundary of the extent is open or closed.
And the again, maybe not (see below). It would be nice if the
documentation mentioned this, I've pasted in a suggestion below.
-- René
;; begin-glyph is highlighted but not end-glyph testcase:
(progn
(switch-to-buffer (generate-new-buffer "testcase"))
(insert "open endpoints")
(let ((ext (make-extent (point-at-bol) (point-at-eol))))
(set-extent-property ext 'start-open t)
(set-extent-property ext 'end-open t)
(set-extent-begin-glyph ext (make-glyph "START "))
(set-extent-end-glyph ext (make-glyph " END"))
(set-extent-property ext 'mouse-face 'highlight))
(insert "\nclosed endpoints")
(let ((ext (make-extent (point-at-bol) (point-at-eol))))
(set-extent-property ext 'start-open nil)
(set-extent-property ext 'end-open nil)
(set-extent-begin-glyph ext (make-glyph "START "))
(set-extent-end-glyph ext (make-glyph " END"))
(set-extent-property ext 'mouse-face 'highlight)))
---
xemacs-21.4/man/lispref/extents.texi.org 2003-04-21 15:27:19.000000000 +0200
+++ xemacs-21.4/man/lispref/extents.texi 2003-04-21 15:04:16.000000000 +0200
@@ -574,7 +574,8 @@
@item invisible
(Boolean) If @code{t}, text under this extent will not be displayed --
-it will look as if the text is not there at all.
+it will look as if the text and the begin-glyph is not there at all.
+The end-glyph will still be displayed.
@item keymap
(keymap or @code{nil}) This keymap is consulted for mouse clicks on this
@@ -894,8 +895,9 @@
@section Interaction of Extents with Keyboard and Mouse Events
If an extent has the @code{mouse-face} property set, it will be
-highlighted when the mouse passes over it. Highlighting is accomplished
-by merging the extent's face with the face or faces specified by the
+highlighted when the mouse passes over it. This includes the
+begin-glyph, but not the end-glyph. Highlighting is accomplished by
+merging the extent's face with the face or faces specified by the
@code{mouse-face} property. The effect is as if a pseudo-extent with
the @code{mouse-face} face were inserted after the extent in the display
order (@pxref{Extent Endpoints}, display order).
---
xemacs-21.4/man/lispref/display.texi.org 2003-04-21 15:26:46.000000000 +0200
+++ xemacs-21.4/man/lispref/display.texi 2003-04-21 14:51:39.000000000 +0200
@@ -518,7 +518,9 @@
Ordinarily, commands that operate on text or move point do not care
whether the text is invisible. However, the user-level line motion
-commands explicitly ignore invisible newlines.
+commands explicitly ignore invisible newlines. Since this causes a
+slow-down of these commands it is turned off by default, controlled by
+the variable @code{line-move-ignore-invisible}.
@node Selective Display
@section Selective Display