From: Mark A. Hershberger Date: Thu, 2 Feb 2006 01:07:11 +0000 (+0000) Subject: use provided patch X-Git-Tag: emacs-pretest-22.0.90~4444 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39d58fc0349c779b3b369154c140d0c7c1e843a2;p=emacs.git use provided patch --- diff --git a/lisp/xml.el b/lisp/xml.el index 444b8c62a7f..c97c8052148 100644 --- a/lisp/xml.el +++ b/lisp/xml.el @@ -306,16 +306,16 @@ is not well-formed XML. If PARSE-DTD is non-nil, the DTD is parsed rather than skipped, and returned as the first element of the list. If PARSE-NS is non-nil, then QNAMES are expanded." - (save-excursion - (if buffer - (set-buffer buffer)) - (save-restriction - (narrow-to-region beg end) - ;; Use fixed syntax table to ensure regexp char classes and syntax - ;; specs DTRT. - (with-syntax-table (standard-syntax-table) - (let ((case-fold-search nil) ; XML is case-sensitive. - xml result dtd) + ;; Use fixed syntax table to ensure regexp char classes and syntax + ;; specs DTRT. + (with-syntax-table (standard-syntax-table) + (let ((case-fold-search nil) ; XML is case-sensitive. + xml result dtd) + (save-excursion + (if buffer + (set-buffer buffer)) + (save-restriction + (narrow-to-region beg end) (goto-char (point-min)) (while (not (eobp)) (if (search-forward "<" nil t)