]> git.eshelyaron.com Git - emacs.git/commitdiff
Kevin Ryde <user42 at zip.com.au>
authorGlenn Morris <rgm@gnu.org>
Fri, 21 Sep 2007 03:21:39 +0000 (03:21 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 Sep 2007 03:21:39 +0000 (03:21 +0000)
(sgml-html-meta-auto-coding-function): Bind `case-fold-search' to t.

admin/FOR-RELEASE
lisp/ChangeLog
lisp/international/mule.el

index 70aa0c22922df596a520386e0a39efecc64ca498..c9b8c92c1a126fd624015508d3331d131d7b70f1 100644 (file)
@@ -87,6 +87,9 @@ http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00020.html
 ** Bug/Patch view.el
 http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00073.html
 
+** ses-mode runs unsafe functions even if you say "n" when prompted
+http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00109.html
+
 * FIXES FOR EMACS 22.3
 
 Here we list any small fixes that arrived too late for Emacs 22.2, but
index 19f28e89f1ad1b0fa8ab8f7cb600529f5370bcb2..c3909c0de095f8e97ff70d5d71517e6850376dc5 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-21  Kevin Ryde  <user42@zip.com.au>
+
+       * international/mule.el (sgml-html-meta-auto-coding-function):
+       Bind `case-fold-search' to t.
+
 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * wid-edit.el (widget-image-insert): Don't merge mouse-face with
index a7b97b16d200a2b34980767cb2d84371d1d36fe9..2d6a0ce5e88961501a0f28b41f69759444355e74 100644 (file)
@@ -2302,25 +2302,26 @@ This function is intended to be added to `auto-coding-functions'."
 (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 "</head>" 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 <HTML> start tag
-  ;; (allowing for whitespace at bob).  Note: 'DOCTYPE NETSCAPE' is
-  ;; useful for Mozilla bookmark files.
-  (when (and (re-search-forward "\\`[[:space:]\n]*\\(<!doctype[[:space:]\n]+\\(html\\|netscape\\)\\|<html\\)" size t)
-            (re-search-forward "<meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']text/\\sw+;\\s-*charset=\\(.+?\\)[\"']" size t))
-    (let* ((match (match-string 1))
-          (sym (intern (downcase match))))
-      (if (coding-system-p sym)
-         sym
-       (message "Warning: unknown coding system \"%s\"" match)
-       nil))))
+  (let ((case-fold-search t))
+    (setq size (min (+ (point) size)
+                   (save-excursion
+                     ;; Limit the search by the end of the HTML header.
+                     (or (search-forward "</head>" 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 <HTML> start tag
+    ;; (allowing for whitespace at bob).  Note: 'DOCTYPE NETSCAPE' is
+    ;; useful for Mozilla bookmark files.
+    (when (and (re-search-forward "\\`[[:space:]\n]*\\(<!doctype[[:space:]\n]+\\(html\\|netscape\\)\\|<html\\)" size t)
+              (re-search-forward "<meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']text/\\sw+;\\s-*charset=\\(.+?\\)[\"']" size t))
+      (let* ((match (match-string 1))
+            (sym (intern (downcase match))))
+       (if (coding-system-p sym)
+           sym
+         (message "Warning: unknown coding system \"%s\"" match)
+         nil)))))
 
 ;;;
 (provide 'mule)