changeset 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 8e06d480f634
children 78fbdbd37286
files lisp/ChangeLog lisp/international/mule.el
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Feb 12 21:20:05 2008 +0000
+++ b/lisp/ChangeLog	Tue Feb 12 21:21:02 2008 +0000
@@ -1,5 +1,8 @@
 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.
--- 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))))