aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-06-24 23:06:24 +0800
committerChong Yidong2012-06-24 23:06:24 +0800
commit772b2e2ce207fd747583aa51e3495aa37b1eede1 (patch)
tree12215bfae7880a4ecc4fbd130738515e8ca6b942
parent0eb4e0df7aeb678467245ef9161a24016dc447c7 (diff)
downloademacs-772b2e2ce207fd747583aa51e3495aa37b1eede1.tar.gz
emacs-772b2e2ce207fd747583aa51e3495aa37b1eede1.zip
* xml.el (xml-parse-tag): Corrrectly handle comment embedded in non-tag text.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/xml.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 569dd004f76..a03ee8228f1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-06-24 Chong Yidong <cyd@gnu.org>
2
3 * xml.el (xml-parse-tag): Correctly handle comment embedded in
4 non-tag text.
5
12012-06-23 Juanma Barranquero <lekktu@gmail.com> 62012-06-23 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * makefile.w32-in (COMPILE_FIRST): Synch with changes in 2012-06-22T21:24:54Z!monnier@iro.umontreal.ca. 8 * makefile.w32-in (COMPILE_FIRST): Synch with changes in 2012-06-22T21:24:54Z!monnier@iro.umontreal.ca.
diff --git a/lisp/xml.el b/lisp/xml.el
index cb56f023af0..d1e824c4ece 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -424,7 +424,8 @@ Returns one of:
424 (search-forward "-->") 424 (search-forward "-->")
425 (skip-syntax-forward " ") 425 (skip-syntax-forward " ")
426 (unless (eobp) 426 (unless (eobp)
427 (xml-parse-tag parse-dtd xml-ns))) 427 (let ((xml-sub-parser t))
428 (xml-parse-tag parse-dtd xml-ns))))
428 ;; end tag 429 ;; end tag
429 ((looking-at "</") 430 ((looking-at "</")
430 '()) 431 '())