On Thu, 28 Feb 2002, cgw(a)alum.mit.edu wrote:
Marco Walther writes:
>
> Which language were you trying? I'm using this sometimes with
> Java/JDE and it works for me there?
>
> XEmacs 21.4 (patch 5) "Civil Service" [Lucid] (sparc-sun-solaris2.8)
> of Tue Oct 23 2001 on jena
Language = C / English.
I think that language is not the issue... the difference is that you
are running xemacs-21.4.5 and I'm using xemacs-21.1.14. I don't have
a 21.4 to test with. (I've been quite hesitant to trade in my lovely
Channel Islands for a less stable version with a bunch of enhancements
which don't appeal to my tastes)
I can verify that this problem does not occur in 21.4.6 and that it
does occur is 21.1. The backtrace is not overly interesting as
ispell-comments-and-strings is calling error based on the results of
parse-partial-sexp.
(defun ispell-comments-and-strings ()
....
(setq state (parse-partial-sexp start (point-max)
nil nil state 'syntax-table))
(if (or (nth 3 state) (nth 4 state))
(error "Unterminated string or comment"))
...)
I would recommend upgrading to 21.4.6 over 21.1.14.
BTW, you can have flyspell enabled in programming modes to check
comments as you type them.
-jeff