pglpm--- via General discussion about AUCTeX <[email protected]> writes:

> It seems that AUCTeX by default treats colon ":" and underscore "_" as
> word parts; more generally, 'backward-kill-work' will stop at ":" and
> "_". A while ago, after some help here from Arash (see old emails
> below), I managed to modify their syntax to "punctuation" by adding
> these lines in my TeX-hook:
>
>      (modify-syntax-entry ?: "." LaTeX-expl3-syntax-table)
>      (modify-syntax-entry ?_ "." LaTeX-expl3-syntax-table)
>
> In the last version of AUCTeX, 'LaTeX-expl3-syntax-table' seems not to
> exist anymore (something in relation to this was discussed by Arash as
> well).

`LaTeX-expl3-syntax-table' is still there, but expl3.el is now loaded
mostly with `docTeX-mode'.  This is what I see in a regular .tex file:

              character: : (displayed as :) (codepoint 58, #o72, #x3a)
                charset: ascii (ASCII (ISO646 IRV))
  code point in charset: 0x3A
                 script: latin
                 syntax: .        which means: punctuation

              character: _ (displayed as _) (codepoint 95, #o137, #x5f)
                charset: ascii (ASCII (ISO646 IRV))
  code point in charset: 0x5F
                 script: latin
                 syntax: .        which means: punctuation

> I was wondering how's the correct way to modify the syntax of ":" and
> "_" in AUCTeX-latex buffers now.

That shouldn't be necessary.  I presume you're using AUCTeX 14.2.0?

Best, Arash

Reply via email to