diff options
| author | Mark A. Hershberger | 2006-02-02 01:07:11 +0000 |
|---|---|---|
| committer | Mark A. Hershberger | 2006-02-02 01:07:11 +0000 |
| commit | 39d58fc0349c779b3b369154c140d0c7c1e843a2 (patch) | |
| tree | df7f0a6106735c94adc82f50720597f0ad35c7e8 | |
| parent | 5178753d3175190585364a4da85b4e5c8e0671af (diff) | |
| download | emacs-39d58fc0349c779b3b369154c140d0c7c1e843a2.tar.gz emacs-39d58fc0349c779b3b369154c140d0c7c1e843a2.zip | |
use provided patch
| -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. | |||
| 306 | If PARSE-DTD is non-nil, the DTD is parsed rather than skipped, | 306 | If PARSE-DTD is non-nil, the DTD is parsed rather than skipped, |
| 307 | and returned as the first element of the list. | 307 | and returned as the first element of the list. |
| 308 | If PARSE-NS is non-nil, then QNAMES are expanded." | 308 | If 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) |