aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-02-12 21:21:02 +0000
committerStefan Monnier2008-02-12 21:21:02 +0000
commit9e5e233a2f9825aaf0055db72bcf900bc282d032 (patch)
tree4f3032e6047a648de1bb5730d1fd5f59cc2c9c95
parent53ad7bee3f4fe36f65121a69857b016a02aca7f7 (diff)
downloademacs-9e5e233a2f9825aaf0055db72bcf900bc282d032.tar.gz
emacs-9e5e233a2f9825aaf0055db72bcf900bc282d032.zip
(sgml-html-meta-auto-coding-function): Make sure the search limit is ahead.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/international/mule.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aef928f431d..b83116ef99c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> 12008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * international/mule.el (sgml-html-meta-auto-coding-function):
4 Make sure the search limit is ahead.
5
3 * tar-mode.el: Fix broken indentation. 6 * tar-mode.el: Fix broken indentation.
4 (tar-mouse-extract, tar-extract, tar-subfile-save-buffer): 7 (tar-mouse-extract, tar-extract, tar-subfile-save-buffer):
5 Use with-current-buffer. 8 Use with-current-buffer.
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index d94ba8b9a4f..c1723523b28 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -2297,7 +2297,7 @@ This function is intended to be added to `auto-coding-functions'."
2297 (setq size (min (+ (point) size) 2297 (setq size (min (+ (point) size)
2298 (save-excursion 2298 (save-excursion
2299 ;; Limit the search by the end of the HTML header. 2299 ;; Limit the search by the end of the HTML header.
2300 (or (search-forward "</head>" size t) 2300 (or (search-forward "</head>" (+ (point) size) t)
2301 ;; In case of no header, search only 10 lines. 2301 ;; In case of no header, search only 10 lines.
2302 (forward-line 10)) 2302 (forward-line 10))
2303 (point)))) 2303 (point))))