Anyone use ELSE minor-mode in Emacs?

John J Lee jjl at pobox.com
Mon Dec 22 11:45:14 EST 2003


On Mon, 22 Dec 2003, [iso-8859-1] François Pinard wrote:

> [John J Lee]
>
> > I had the impression that Mark's thing (Pythonwin, I think it's called --
> > or is that the MFC wrapper?  I can never remember.) used the standard
> > library, or hooked in at the C level, so that syntax colouring is always
> > correct -- unlike Emacs (and unlike vi, I guess).
>
> You can never be sure to have syntax colouring correct unless you scan
> the source from its beginning.  Consider for example that you could have
> long sections of Python code embedded in triple quotes, turning it all
> into a single long string indeed.  Most editors try to limit the amount
> of text to consider for syntax colouring, as analysing a lot of text may
> slow down the editor considerably.  They try to limit the analysis to
> the currently displayed text, and a bit before, not far.

No doubt you're better informed than me about what Pythonwin actually
does, but never say never.  You could scan the whole thing once, then keep
everything 100% correct subsequently just by watching the edits.  No, I
don't claim it would be easy!-)


John





More information about the Python-list mailing list