A recent article on c.e.x. pointed out that Emacs has a mode that
highlights the line containing point, and wondered whether XEmacs had
such a thing. The Emacs version uses overlays, and an additional
argument to define-minor-mode that we don't have (should we?). I did a
quick port to use extents and work around the define-minor-mode
deficiency and posted the result to c.e.x. However, it wasn't a full
port, because Emacs can specify that an overlay is associated with a
particular window. We can't do that with extents, which are always
associated to a buffer or string. The result is that the Emacs version
can highlight different lines in the same buffer appearing in different
windows, but my version can't.
I tried to fix that deficiency, because I think this is cool and would
like to see it work on XEmacs. I'm attaching my first attempt, which is
also my first time using specifiers. It's kind of complex, but the
"local" mode seems to work. The "global" mode does not, however.
Only
the original window gets a highlighted bar; other windows don't. Could
you specifier gurus out there check the code and see if I did anything
obviously wrong?
Thanks,
--
Jerry James
http://www.ittc.ku.edu/~james/