From: Kenichi Handa Date: Mon, 19 Aug 2002 06:39:33 +0000 (+0000) Subject: (sgml-xml-auto-coding-function): Call X-Git-Tag: ttn-vms-21-2-B4~13641 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=623b1d5e4484c577f3c96031725a5874fbda43fb;p=emacs.git (sgml-xml-auto-coding-function): Call re-search-forward with NOERROR t.. --- 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 + + * international/mule.el (sgml-xml-auto-coding-function): Call + re-search-forward with NOERROR t. + 2002-08-19 Miles Bader [original idea from Luc Teirlinck ] 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))))