>>>>"BM" == Bartosz Maruszewski
<B.Maruszewski(a)jtz.org.pl> writes:
BM> I've been writing a lot in LaTeX last time and noticed that XEmacs
BM> interprets incorrectly the "\$" sequence. It treats it as if it was a
math
BM> formula starting while it's just a shell-variable name's starting. Like
BM> here : The shell varaible {\tt \$blah} ...". XEmacs starts to highlight
BM> everything green. And it even doesn't end with next "\$" sequence,
but
BM> sometimes earlier (on a newline for example).
BM> It refers to XEmacs v20.4 on a Linux 2.0.34 on an Pentium box. I got
BM> the precompiled version from a mirror site.
Same for 21.0. The right patch would be to fix the syntax class
`character quote'... Here is a workaround...
- Christoph
1998-07-20 Christoph Wedler <wedler(a)fmi.uni-passau.de>
* tex-mode.el (tex-common-initialization): Use syntax class
`escape' for \. Syntax class `character quote' only works for
`forward-sexp' and friends.
diff -c /home/clstaff/wedler/xemacs/xemacs-packages/lisp/texinfo/tex-mode.el~
/home/clstaff/wedler/xemacs/xemacs-packages/lisp/texinfo/tex-mode.el
*** /home/clstaff/wedler/xemacs/xemacs-packages/lisp/texinfo/tex-mode.el~ Mon Jul 20
11:01:31 1998
--- /home/clstaff/wedler/xemacs/xemacs-packages/lisp/texinfo/tex-mode.el Mon Jul 20
11:01:31 1998
***************
*** 406,412 ****
(modify-syntax-entry ?\f ">")
(modify-syntax-entry ?$ "$$")
(modify-syntax-entry ?% "<")
! (modify-syntax-entry ?\\ "/")
(modify-syntax-entry ?\" ".")
(modify-syntax-entry ?& ".")
(modify-syntax-entry ?_ ".")
--- 406,412 ----
(modify-syntax-entry ?\f ">")
(modify-syntax-entry ?$ "$$")
(modify-syntax-entry ?% "<")
! (modify-syntax-entry ?\\ "\\")
(modify-syntax-entry ?\" ".")
(modify-syntax-entry ?& ".")
(modify-syntax-entry ?_ ".")