Commit df94067b authored by Chong Yidong's avatar Chong Yidong
Browse files

(find-auto-coding): Don't search for line-ending characters past the

end of the tail.
parent 046c4413
......@@ -1735,7 +1735,7 @@ If nothing is specified, the return value is nil."
;; is just "\r" and we can't use "^" nor "$" in regexp.
(when (and tail-found (or (not coding-system) (not char-trans)))
(goto-char tail-start)
(re-search-forward "[\r\n]\^L" nil t)
(re-search-forward "[\r\n]\^L" tail-end t)
(if (re-search-forward
"[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]"
tail-end t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment