]> git.eshelyaron.com Git - emacs.git/commitdiff
(sgml-xml-auto-coding-function): Call
authorKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 06:39:33 +0000 (06:39 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 06:39:33 +0000 (06:39 +0000)
re-search-forward with NOERROR t..

lisp/ChangeLog
lisp/international/mule.el

index 6b6fbed2b793986aa12627a8675c7b15c6afb0a0..4813a636eeab0d63d315be35867a3802bfb4b52b 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-19  Kenichi Handa  <handa@etl.go.jp>
+
+       * international/mule.el (sgml-xml-auto-coding-function): Call
+       re-search-forward with NOERROR t.
+
 2002-08-19  Miles Bader  <miles@gnu.org>
 
        [original idea from Luc Teirlinck <teirllm@mail.auburn.edu>]
index 6cc905603e4eef52391b55c70b9c49fff364d45c..e937d11030ef5fabe57c814e9516ccc041ec5378 100644 (file)
@@ -2003,7 +2003,7 @@ Analogous to `define-translation-table', but updates
 (defun sgml-xml-auto-coding-function (size)
   "Determine whether the buffer is XML, and if so, its encoding.
 This function is intended to be added to `auto-coding-functions'."
-  (when (re-search-forward "\\`[[:space:]\n]*<\\?xml")
+  (when (re-search-forward "\\`[[:space:]\n]*<\\?xml" nil t)
     (let ((end (save-excursion
                 ;; This is a hack.
                 (re-search-forward "\"\\s-*\\?>" size t))))