diff options
author | Mark A. Hershberger <mah@everybody.org> | 2006-02-02 01:07:11 +0000 |
---|---|---|
committer | Mark A. Hershberger <mah@everybody.org> | 2006-02-02 01:07:11 +0000 |
commit | 39d58fc0349c779b3b369154c140d0c7c1e843a2 (patch) | |
tree | df7f0a6106735c94adc82f50720597f0ad35c7e8 /lisp/xml.el | |
parent | 5178753d3175190585364a4da85b4e5c8e0671af (diff) | |
download | emacs-39d58fc0349c779b3b369154c140d0c7c1e843a2.tar.gz |
use provided patch
Diffstat (limited to 'lisp/xml.el')
-rw-r--r-- | lisp/xml.el | 20 |
1 files changed, 10 insertions, 10 deletions
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) |