David Wallin <david.wallin@...> writes:
> You're definitely right about the parens, I forgot they were hidden in the
I guess I was thinking more generally than that, about Emacs's notion
of sexp for various modes. But maybe things like python-mode use
different functionality anyway.
>> I think a fairly subtle background would be a useful extra signal, in
>> addition to the normal display.)
> That's exactly what I want to do.
I'm not sure how much semantic buys you, for this. I think the actual
incremental parsing gets done in idle time anyway, and I'd guess doing
paren-matching (or the moral equivalent) is fast enough in emacs that
you could just use that. I guess knowing that the buffer isn't
currently parseable might be useful, and using semantic's idle loop
might be convenient? Maybe it can provide more; I don't know?
What worries me more is that mwe-color-box.el adds whitespace to the
lines to make up a rectangle. That's unacceptable for ordinary use,
IMHO, but I'm not sure how to avoid it. Ah, you could have an overlay
at the end of each line with a suitable after-string containing
whitespace; that ought to work?