[plt-scheme] Emacs modes and s-expression comments
On Feb 15, Carl Eastlund wrote:
> I use emacs and "quack" mode for editing Scheme source. It's nice
> overall, but "#;" comments confuse it - it considers them line
> comments, and they ruin parenthesis-matching for entire files. Does
> anyone know of a good fix, workaround, a version of quack that
> understands these, or a better emacs mode I should be using for
> Scheme? Thanks.
I don't think that there is any sane way of doing that. On the
syntactic level, Emacs can have simple character associations, and the
most you can get is two-character combinations for openning and
closing a comment. In the #; case, you need to look at the regexp,
and that can only be done at the Elisp level, after it's done with the
low level lexical stuff. The sane approach is to find some way to
disable the ";" from being a comment in "#;". (Then there font lock
the lives in elisp, but making it work with multi-line patterns is a
pain, and sexprs are impossible. (But perhaps things changed...))
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!