Commit 9e5e233a authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(sgml-html-meta-auto-coding-function): Make sure the search limit is ahead.

parent 53ad7bee
2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
 
* international/mule.el (sgml-html-meta-auto-coding-function):
Make sure the search limit is ahead.
* tar-mode.el: Fix broken indentation.
(tar-mouse-extract, tar-extract, tar-subfile-save-buffer):
Use with-current-buffer.
......
......@@ -2297,7 +2297,7 @@ This function is intended to be added to `auto-coding-functions'."
(setq size (min (+ (point) size)
(save-excursion
;; Limit the search by the end of the HTML header.
(or (search-forward "</head>" size t)
(or (search-forward "</head>" (+ (point) size) t)
;; In case of no header, search only 10 lines.
(forward-line 10))
(point))))
......
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