fixing emacs mode to be more robust (I hope), and support end and
parens and such in strings better