Hi everyone,

Of late I'm noticing that colon ":" and underscore "_" are treated as part of 
words, as confirmed by looking at the syntax table. Just as a curiosity: is this a recent change, 
or is my memory simply failing me? In the archives I found a discussion about this around 2012.

I'd like to treat those characters as punctuation, so that if I have, say, "eq:blah" with 
point at the end, and I back-delete a word, I should be left with "eq:". In my hook for 
LaTeX I therefore added

   (modify-syntax-entry ?: "." LaTeX-mode-syntax-table)
   (modify-syntax-entry ?_ "." LaTeX-mode-syntax-table)

but they don't seem to have any effect. Probably I'm doing something wrong but 
I can't find out what. Any tips?

Kind regards,
Luca


Reply via email to