Hi Arash, thank you for your interest. And apologies: I got completely confused.

Indeed the punctuation behaviour in 14.2.0 is the one I want, especially with 
word-killing. I just realized this in these past minutes while writing a tex 
document. I hadn't been writing in several months, and the warning about the 
undefined expl3-syntax-table threw me off and I misremembered my preferences.

So nice that everything works nicely out of the box!

Apologies to everyone for this confusion and spam! 🙇🙇🙇

Kind regards,
Luca


On 260926 13:16, Arash Esbati wrote:
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