diff options
| author | Stefan Monnier | 2008-02-12 21:21:02 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-12 21:21:02 +0000 |
| commit | 9e5e233a2f9825aaf0055db72bcf900bc282d032 (patch) | |
| tree | 4f3032e6047a648de1bb5730d1fd5f59cc2c9c95 | |
| parent | 53ad7bee3f4fe36f65121a69857b016a02aca7f7 (diff) | |
| download | emacs-9e5e233a2f9825aaf0055db72bcf900bc282d032.tar.gz emacs-9e5e233a2f9825aaf0055db72bcf900bc282d032.zip | |
(sgml-html-meta-auto-coding-function): Make sure the search limit is ahead.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/international/mule.el | 2 |
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 @@ | |||
| 1 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-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)))) |