]> code.delx.au - gnu-emacs/blobdiff - lisp/files.el
Fix byte-compiler warnings about looking-back.
[gnu-emacs] / lisp / files.el
index 0b011f4c363852fd8dfdbe91ba95cbac7074e31a..152f15542799cadb155586a9147e1e3eb9ecbe63 100644 (file)
@@ -3375,7 +3375,7 @@ local variables, but directory-local variables may still be applied."
                      (error "Local variables entry is missing the prefix"))
                    (end-of-line)
                    ;; Discard the suffix.
-                   (if (looking-back suffix)
+                   (if (looking-back suffix (line-beginning-position))
                        (delete-region (match-beginning 0) (point))
                      (error "Local variables entry is missing the suffix"))
                    (forward-line 1))