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
(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 ">")
;; hide the text containing the mark, but not the mark
(set-extent-properties (make-extent (1- (point)) (1+ (point)))
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
I'd really like a spec of what should happen in the various
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 Sidwell :: http://www.codesourcery.com
XEmacs-Patches mailing list