X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/dd166d5fa1712b0dda35859c91d89666c2873471..d3857d85ab7e18b5dafdb6395e811bb566f8184b:/lisp/textmodes/tex-mode.el diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 2a9059e2f5..24347479e5 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -648,7 +648,7 @@ An alternative value is \" . \", if you use a font with a narrow period." ((not char) font-lock-comment-face) ((eq char ?$) tex-math-face) (t - (when (char-valid-p char) + (when (characterp char) ;; This is a \verb?...? construct. Let's find the end and mark it. (save-excursion (skip-chars-forward (string ?^ char)) ;; Use `end' ?