]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/tex-mode.el
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-50
[gnu-emacs] / lisp / textmodes / tex-mode.el
index 2a9059e2f56e612eebee5d910b56eb2cb2421edd..24347479e57d92a1d3225d85fdb0147c25955d46 100644 (file)
@@ -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' ?