Hi,
I'm not sure what the problem is. However, if the problem relates to
the syntactical significance of the underscore (_) character, then,
yes, jde-mode redefines underscore to be a word character rather than
a punctuation character. I did this several years ago at the request
of a number of JDEE users who like to use underscore as a prefix for
field names as part of their coding convention, e.g., _EmployeeName. I
personally find this practice barbaric but went ahead and made the
change anyway. I suppose I could make this an option. I haven't done
so because nobody has complained until now and because standard Java
coding convention is to NOT use underscores as word separators, i.e.,
to prefer EmployeeName to employee_name.
- Paul
Rick Campbell writes:
From: "Stephen J. Turnbull" <stephen(a)xemacs.org>
Date: Mon, 31 Mar 2003 23:36:44 +0900
>>>>> "Rick" == Rick Campbell
<rick(a)campbellcentral.org> writes:
Rick> In 21.4 (patch 8),
Rick> forward-word (M-f) behaves identically to forward-sexp (C-M-f),
Does this happen in other modes? In 21.5 and 21.4 (both current CVS),
in c (cc-mode), java (cc-mode), text (message), and elisp (*scratch*
buffer) modes it does not, for me anyway. (M-f stops at underscores,
C-M-f jumps to whitespace.)
I just verified with 21.5 (beta6) "bok choi" (no init) and I see the
same behavior. Visiting a c, c++, or lisp file, the mode
distinguishes between words and symbols. Visiting a java file does
not.
HOWEVER, as your response hints, I'm actually not using java-mode per
se, but JDE mode. When I explicitly select java-mode (cc-mode),
everything is as it should be. Clearly, I just need to tweak my
auto-mode-alist.
I suspect your beef is with the mode maintainers.
Agreed. I assumed that they would read this list. I've CCed
paulk(a)mathworks.com just in case.
Rick