# HG changeset patch # User Glenn Morris # Date 1190344743 0 # Node ID ebe83e1f1ea6603dc196d828cc976557386f448d # Parent 90961e86f84e7edb661150c91893873ee8479a04 Kevin Ryde (sgml-html-meta-auto-coding-function): Bind `case-fold-search' to t. diff -r 90961e86f84e -r ebe83e1f1ea6 lisp/international/mule.el --- a/lisp/international/mule.el Fri Sep 21 03:07:52 2007 +0000 +++ b/lisp/international/mule.el Fri Sep 21 03:19:03 2007 +0000 @@ -2310,25 +2310,26 @@ (defun sgml-html-meta-auto-coding-function (size) "If the buffer has an HTML meta tag, use it to determine encoding. This function is intended to be added to `auto-coding-functions'." - (setq size (min (+ (point) size) - (save-excursion - ;; Limit the search by the end of the HTML header. - (or (search-forward "" size t) - ;; In case of no header, search only 10 lines. - (forward-line 10)) - (point)))) - ;; Make sure that the buffer really contains an HTML document, by - ;; checking that it starts with a doctype or a start tag - ;; (allowing for whitespace at bob). Note: 'DOCTYPE NETSCAPE' is - ;; useful for Mozilla bookmark files. - (when (and (re-search-forward "\\`[[:space:]\n]*\\(" size t) + ;; In case of no header, search only 10 lines. + (forward-line 10)) + (point)))) + ;; Make sure that the buffer really contains an HTML document, by + ;; checking that it starts with a doctype or a start tag + ;; (allowing for whitespace at bob). Note: 'DOCTYPE NETSCAPE' is + ;; useful for Mozilla bookmark files. + (when (and (re-search-forward "\\`[[:space:]\n]*\\(