# HG changeset patch # User Stefan Monnier # Date 1202851262 0 # Node ID 3a35316b344f0d91e94bf4c23afb86fa9c6bc910 # Parent 8e06d480f634e83f0acb0163cb8fdf4da038863a (sgml-html-meta-auto-coding-function): Make sure the search limit is ahead. diff -r 8e06d480f634 -r 3a35316b344f lisp/ChangeLog --- 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 + * 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. diff -r 8e06d480f634 -r 3a35316b344f lisp/international/mule.el --- 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 "" size t) + (or (search-forward "" (+ (point) size) t) ;; In case of no header, search only 10 lines. (forward-line 10)) (point))))