Stephen,
Here's an updated patch.
That said, I'm inclined to apply the patch provided
(1) it doesn't break other applications (the important one I can think
of is preview-latex), and
I've been having difficulty installing preview-latex, so have been unable to
test this.
(2) it is understood that behavior may change in the future.
;; make a visible mark in the left margin
(set-specifier left-margin-width 2 (current-buffer))
(set-extent-properties (make-extent (point) (point))
`(begin-glyph '(make-glyph ">")
begin-glyph-layout 'outside-margin))
;; hide the text containing the mark, but not the mark
(set-extent-properties (make-extent (1- (point)) (1+ (point)))
'(invisible t))
This currently doesn't work, but I've always considered that a bug.
I have fixed this. With this patch non-inline-text glyphs are always rendered,
regardless of whether they are on an extent within an invisible extent. (see
gl.el example).
I'd really like a spec of what should happen in the various
cases
where extents share endpoints and the glyph's layout is 'text.
Without a spec to work to, I can easily see someone coming up with an
application that doesn't work as desired wanting to change it again.
I've added such a spec to the beginning of extents.c. I hope that is clear.
nathan
--
Nathan Sidwell ::
http://www.codesourcery.com :: CodeSourcery
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches