Commit 18edb22d authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix xml.el regression introduced by 2012-01-27 change.

* lisp/xml.el (xml-parse-region, xml-parse-tag): Avoid errors due to
reaching eob.

Fixes: debbugs:11286
parent 7b9946cf
2012-04-21 Chong Yidong <>
* xml.el (xml-parse-region, xml-parse-tag): Avoid errors due to
reaching eob (Bug#11286).
2012-04-20 Richard Stallman <>
Fix logic for returning to and yanking from Rmail buffer.
......@@ -323,7 +323,8 @@ If PARSE-NS is non-nil, then QNAMES are expanded."
((null result)
;; Not looking at an xml start tag.
(forward-char 1))
(unless (eobp)
(forward-char 1)))
((and xml (not xml-sub-parser))
;; Translation of rule [1] of XML specifications
(error "XML: (Not Well-Formed) Only one root tag allowed"))
......@@ -422,7 +423,8 @@ Returns one of:
((looking-at "<!--")
(search-forward "-->")
(skip-syntax-forward " ")
(xml-parse-tag parse-dtd xml-ns))
(unless (eobp)
(xml-parse-tag parse-dtd xml-ns)))
;; end tag
((looking-at "</")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment