]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/perl-mode.el
Merge from emacs--devo--0
[gnu-emacs] / lisp / progmodes / perl-mode.el
index 809ed7a9f36b20b3474a4cdfc3c9b5893bd6eb86..bb71491da2d46eaa8df0e0825d831af262bf2352 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)