Oscar Kramer <okramer(a)imagelinks.com> wrote:
/.../ I just upgraded to xemacs v21.4 with cc-mode v5.28 (new
indentation engine).
/.../
WHAT I'M GETTING:
(1) if (FUBAR)
(2) dummy = me;
(3) //*
(4) // My company's comment style screwed up
(5) boss_happy = false;
This is due to a bug in the low level syntactic routines in XEmacs,
the forward-comment function to be specific, so I'm redirecting this
to the bug report address for XEmacs. (I think I've reported this
problem several times before, but I'm not sure if it's actually the
same one or only something similar.)
The problem can be minimized to this: Open an empty buffer in C mode.
Enter "//*" followed by a line break. Run (forward-comment -1) from
the beginning of the new line. The point ends up after the "*",
whereas I expect it to be before the first "/" (as it is in XEmacs 19
and 20, and all versions of Emacs I've tested). The way that CC Mode
initializes the syntax tables for the /* */ and // comment syntaxes
haven't changed since version 5.17.
[I've also cc'd David Burken in response to his similar bug report,
although I'm not sure it's the same bug since he didn't specify his
flavor of (X)Emacs.]