]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-auto-coding): Don't search for line-ending characters past the
authorChong Yidong <cyd@stupidchicken.com>
Sat, 3 Mar 2007 22:03:04 +0000 (22:03 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 3 Mar 2007 22:03:04 +0000 (22:03 +0000)
end of the tail.

lisp/international/mule.el

index 6d1a17cba42fbc693219136fdd6ad5370e29c2eb..52bf6229b9709477023730976c8641fac590bfe0 100644 (file)
@@ -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)