Here's the status quo (packages at pre-release level) of my currently
loaded syntax tables.
It's worth to note that cperl has
cperl-under-as-char
to configure the syntax of ?_.
Adrian
(mapc
(lambda (table)
(let ((name (symbol-name table))
(val (symbol-value table)))
(if (syntax-table-p val)
(insert (format "syntax of %s in %s is %s\n" ?_ name (char-syntax ?_
val))))))
'(c++-mode-syntax-table
c-mode-syntax-table
completion-list-mode-syntax-table
cperl-mode-syntax-table
cperl-string-syntax-table
css-syntax-table
emacs-lisp-mode-syntax-table
font-lock-syntax-table
fume-syntax-table
gnus-adaptive-word-syntax-table
gnus-article-mode-syntax-table
help-mode-syntax-table
ibuffer-occur-mode-syntax-table
idl-mode-syntax-table
ietf-drums-syntax-table
java-mode-syntax-table
lisp-mode-syntax-table
mail-abbrev-syntax-table
mail-extr-address-comment-syntax-table
mail-extr-address-domain-literal-syntax-table
mail-extr-address-syntax-table
mail-extr-address-text-comment-syntax-table
mail-extr-address-text-syntax-table
mail-mode-header-syntax-table
mail-mode-syntax-table
mailcap-parse-args-syntax-table
message-mode-syntax-table
mm-parse-args-syntax-table
mml-syntax-table
nnmail-split-fancy-syntax-table
objc-mode-syntax-table
pike-mode-syntax-table
score-mode-syntax-table
sh-mode-syntax-table
sort-fields-syntax-table
temp-buffer-mode-syntax-table
text-mode-syntax-table
url-mailserver-syntax-table
vc-annotate-mode-syntax-table
vc-dired-mode-syntax-table))
; below paragraph sorted according to (sort-regexp-fields nil "^.*$"
; "\\?\\\\?.$" 1873 3395)
syntax of ?_ in mail-extr-address-text-syntax-table is ?\.
syntax of ?_ in completion-list-mode-syntax-table is ?_
syntax of ?_ in css-syntax-table is ?_
syntax of ?_ in emacs-lisp-mode-syntax-table is ?_
syntax of ?_ in gnus-adaptive-word-syntax-table is ?_
syntax of ?_ in gnus-article-mode-syntax-table is ?_
syntax of ?_ in help-mode-syntax-table is ?_
syntax of ?_ in ibuffer-occur-mode-syntax-table is ?_
syntax of ?_ in ietf-drums-syntax-table is ?_
syntax of ?_ in lisp-mode-syntax-table is ?_
syntax of ?_ in mail-mode-header-syntax-table is ?_
syntax of ?_ in mail-mode-syntax-table is ?_
syntax of ?_ in mailcap-parse-args-syntax-table is ?_
syntax of ?_ in message-mode-syntax-table is ?_
syntax of ?_ in mm-parse-args-syntax-table is ?_
syntax of ?_ in mml-syntax-table is ?_
syntax of ?_ in nnmail-split-fancy-syntax-table is ?_
syntax of ?_ in score-mode-syntax-table is ?_
syntax of ?_ in temp-buffer-mode-syntax-table is ?_
syntax of ?_ in text-mode-syntax-table is ?_
syntax of ?_ in url-mailserver-syntax-table is ?_
syntax of ?_ in vc-dired-mode-syntax-table is ?_
syntax of ?_ in cperl-mode-syntax-table is ?w
syntax of ?_ in cperl-string-syntax-table is ?w
syntax of ?_ in mail-abbrev-syntax-table is ?w
syntax of ?_ in mail-extr-address-comment-syntax-table is ?w
syntax of ?_ in mail-extr-address-domain-literal-syntax-table is ?w
syntax of ?_ in mail-extr-address-syntax-table is ?w
syntax of ?_ in mail-extr-address-text-comment-syntax-table is ?w
syntax of ?_ in sort-fields-syntax-table is ?w
>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
>>>> "Paul" == Paul Kinnucan
<paulk(a)mathworks.com> writes:
Paul> However, if the problem relates to
the syntactical
Paul> significance of the underscore (_) character, then, yes,
Paul> jde-mode redefines underscore to be a word character rather
Paul> than a punctuation character.
Stephen> That's it. There's something in the LispRef somewhere that says
Stephen> "don't you dare define the syntax of `_' to be word
character", I
Stephen> suppose because it is defined as a symbol character so that sexp
Stephen> movement has the same effect. Of course sexp movement is bound to
Stephen> C-M-<key>, so much less convenient than word movement. I can see
why
Stephen> Java coders (especially those using the "barbaric" convention)
would
Stephen> prefer `_' to be a word character.
Stephen> For those used to Lisp and X programming style, it would be nice to
Stephen> have the option.
Paul> to prefer EmployeeName to employee_name.
Stephen> I'm not going to do anything about it soon, but it occurs to me that
Stephen> "wiki word" movement (kill, copy, etc) might be a nice feature.
In that
Stephen> case probably we ought to make "wiki word" and
`_'-is-word-character
Stephen> global options.
Stephen> Comments? Especially, do you think Java programmers would like
Stephen> wiki-word movement?
Stephen> --
Stephen> Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
Stephen> University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573
JAPAN
Stephen> Ask not how you can "do" free software business;
Stephen> ask what your business can "do for" free
software.
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/