]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/perl-mode.el
Merge from emacs--devo--0
[gnu-emacs] / lisp / progmodes / perl-mode.el
index f2feff595bba6f767144fc4d98565a84a51a8d36..2e7e641096b23d9801cc8526ebb5f0360091fe83 100644 (file)
@@ -320,7 +320,7 @@ The expansion is entirely correct because it uses the C preprocessor."
     (while (< (point) limit)
       (cond
        ((or (null (setq char (nth 3 state)))
-            (and (char-valid-p char) (eq (char-syntax (nth 3 state)) ?\")))
+            (and (characterp char) (eq (char-syntax (nth 3 state)) ?\")))
         ;; Normal text, or comment, or docstring, or normal string.
         nil)
        ((eq (nth 3 state) ?\n)