diff options
| author | Kenichi Handa | 2002-08-19 06:39:33 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-08-19 06:39:33 +0000 |
| commit | 623b1d5e4484c577f3c96031725a5874fbda43fb (patch) | |
| tree | c60a1d90ccc5a2702b28c310d0f13b0ed9ad2f06 | |
| parent | 20b130094d9071af77f8d8ccf6bdf21159364e56 (diff) | |
| download | emacs-623b1d5e4484c577f3c96031725a5874fbda43fb.tar.gz emacs-623b1d5e4484c577f3c96031725a5874fbda43fb.zip | |
(sgml-xml-auto-coding-function): Call
re-search-forward with NOERROR t..
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/mule.el | 2 |
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 @@ | |||
| 1 | 2002-08-19 Kenichi Handa <handa@etl.go.jp> | ||
| 2 | |||
| 3 | * international/mule.el (sgml-xml-auto-coding-function): Call | ||
| 4 | re-search-forward with NOERROR t. | ||
| 5 | |||
| 1 | 2002-08-19 Miles Bader <miles@gnu.org> | 6 | 2002-08-19 Miles Bader <miles@gnu.org> |
| 2 | 7 | ||
| 3 | [original idea from Luc Teirlinck <teirllm@mail.auburn.edu>] | 8 | [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 | |||
| 2003 | (defun sgml-xml-auto-coding-function (size) | 2003 | (defun sgml-xml-auto-coding-function (size) |
| 2004 | "Determine whether the buffer is XML, and if so, its encoding. | 2004 | "Determine whether the buffer is XML, and if so, its encoding. |
| 2005 | This function is intended to be added to `auto-coding-functions'." | 2005 | This function is intended to be added to `auto-coding-functions'." |
| 2006 | (when (re-search-forward "\\`[[:space:]\n]*<\\?xml") | 2006 | (when (re-search-forward "\\`[[:space:]\n]*<\\?xml" nil t) |
| 2007 | (let ((end (save-excursion | 2007 | (let ((end (save-excursion |
| 2008 | ;; This is a hack. | 2008 | ;; This is a hack. |
| 2009 | (re-search-forward "\"\\s-*\\?>" size t)))) | 2009 | (re-search-forward "\"\\s-*\\?>" size t)))) |