summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/international/mule.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6b6fbed2b79..4813a636eea 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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>]
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 6cc905603e4..e937d11030e 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -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))))