diff lisp/international/mule.el @ 91802:3a35316b344f

(sgml-html-meta-auto-coding-function): Make sure the search limit is ahead.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 12 Feb 2008 21:21:02 +0000
parents 606f2d163a64
children 89b7a215ead9
line wrap: on
line diff
--- a/lisp/international/mule.el	Tue Feb 12 21:20:05 2008 +0000
+++ b/lisp/international/mule.el	Tue Feb 12 21:21:02 2008 +0000
@@ -2297,7 +2297,7 @@
     (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))))