When I am editing long LaTeX documents using auctex in emacs, sometimes the syntax highlighting goes wrong and normal text is coloured as being mathematics and vice-versa. I recently discovered by accident that C-c C-n
(which runs the command TeX-normal-mode
) refreshes the highlighting and fixes this (until it happens again).