# HG changeset patch # User Kenichi Handa # Date 1149220454 0 # Node ID cb001b5b571b3b3ae01a27617e9e37ecb3eb363d # Parent d15d9ffb9a58a4710a4fa6f4255c0fbbb0088395 (sgml-html-meta-auto-coding-function): Limit the search by the end of the HTML header (if any). diff -r d15d9ffb9a58 -r cb001b5b571b lisp/international/mule.el --- a/lisp/international/mule.el Fri Jun 02 03:53:55 2006 +0000 +++ b/lisp/international/mule.el Fri Jun 02 03:54:14 2006 +0000 @@ -2256,7 +2256,10 @@ (setq size (min (+ (point) size) ;; Only search forward 10 lines (save-excursion - (forward-line 10) + ;; Limit the search by the end of the HTML header. + (or (search-forward "" size t) + ;; In case of no header, search only 10 lines. + (forward-line 10)) (point)))) (when (and (search-forward "