Fixing scala-mode.el for Emacs 23
Tuesday August 21, 2007 by Derek Young
I’m using a build of Emacs 23 (which has GTK support and anti-aliased fonts). It seems that scala-mode.el, shipped with the Scala distribution is not compatible with this version of emacs. When loading a Scala file you’ll get the following error:
(wrong-type-argument number-or-marker-p (35 . 38))
There is a bug that describes this issue but it hasn’t been addressed.
Looking at the code there appears to be an attempt to provide XEmacs compatibility. The function scala-regexp-opt-charset has two implementations, a short version commented out and an XEmacs compatible version enabled.
I found that going back to the original version of the function fixes the issue. Just uncomment it, and delete or comment out the other version of scala-regexp-opt-charset.

Scala: first steps Scala vs. Groovy: static typing is key to performance
