aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark A. Hershberger2006-02-02 01:07:11 +0000
committerMark A. Hershberger2006-02-02 01:07:11 +0000
commit39d58fc0349c779b3b369154c140d0c7c1e843a2 (patch)
treedf7f0a6106735c94adc82f50720597f0ad35c7e8
parent5178753d3175190585364a4da85b4e5c8e0671af (diff)
downloademacs-39d58fc0349c779b3b369154c140d0c7c1e843a2.tar.gz
emacs-39d58fc0349c779b3b369154c140d0c7c1e843a2.zip
use provided patch
-rw-r--r--lisp/xml.el20
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.
306If PARSE-DTD is non-nil, the DTD is parsed rather than skipped, 306If PARSE-DTD is non-nil, the DTD is parsed rather than skipped,
307and returned as the first element of the list. 307and returned as the first element of the list.
308If PARSE-NS is non-nil, then QNAMES are expanded." 308If PARSE-NS is non-nil, then QNAMES are expanded."
309 (save-excursion 309 ;; Use fixed syntax table to ensure regexp char classes and syntax
310 (if buffer 310 ;; specs DTRT.
311 (set-buffer buffer)) 311 (with-syntax-table (standard-syntax-table)
312 (save-restriction 312 (let ((case-fold-search nil) ; XML is case-sensitive.
313 (narrow-to-region beg end) 313 xml result dtd)
314 ;; Use fixed syntax table to ensure regexp char classes and syntax 314 (save-excursion
315 ;; specs DTRT. 315 (if buffer
316 (with-syntax-table (standard-syntax-table) 316 (set-buffer buffer))
317 (let ((case-fold-search nil) ; XML is case-sensitive. 317 (save-restriction
318 xml result dtd) 318 (narrow-to-region beg end)
319 (goto-char (point-min)) 319 (goto-char (point-min))
320 (while (not (eobp)) 320 (while (not (eobp))
321 (if (search-forward "<" nil t) 321 (if (search-forward "<" nil t)