mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
(sgml-xml-auto-coding-function): Call
re-search-forward with NOERROR t..
This commit is contained in:
parent
20b130094d
commit
623b1d5e44
2 changed files with 6 additions and 1 deletions
|
|
@ -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>]
|
||||
|
|
|
|||
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue