aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-04-16 11:28:26 -0400
committerStefan Monnier2014-04-16 11:28:26 -0400
commitb262bde327db2cd9b2f01f2d3ed946d0b188cb9d (patch)
tree4af1a9d00a5e77bbdd9b0d7f4e90651a7eae258f
parentc76a7a5cd27eb2359f383d481005bf12010f368e (diff)
downloademacs-b262bde327db2cd9b2f01f2d3ed946d0b188cb9d.tar.gz
emacs-b262bde327db2cd9b2f01f2d3ed946d0b188cb9d.zip
* lisp/nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
was done. * lisp/nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed comment to EOB. Fixes: debbugs:17264
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/nxml/nxml-mode.el2
-rw-r--r--lisp/nxml/xmltok.el3
-rw-r--r--test/indent/nxml.xml10
4 files changed, 18 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 38f71bdd78d..e974b30700b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12014-04-16 Stefan Monnier <monnier@iro.umontreal.ca> 12014-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
4 was done (bug#17264).
5 * nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed
6 comment to EOB.
7
3 * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in 8 * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
4 here-documents (bug#17262). 9 here-documents (bug#17262).
5 10
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index 0daf62d804f..cd50bce2152 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -872,7 +872,7 @@ Called with `font-lock-beg' and `font-lock-end' dynamically bound."
872 872
873(defun nxml-fontify-matcher (bound) 873(defun nxml-fontify-matcher (bound)
874 "Called as font-lock keyword matcher." 874 "Called as font-lock keyword matcher."
875 875 (syntax-propertize bound)
876 (unless nxml-degraded 876 (unless nxml-degraded
877 (nxml-debug-change "nxml-fontify-matcher" (point) bound) 877 (nxml-debug-change "nxml-fontify-matcher" (point) bound)
878 878
diff --git a/lisp/nxml/xmltok.el b/lisp/nxml/xmltok.el
index 58a2f16d586..f80a5fd2fa1 100644
--- a/lisp/nxml/xmltok.el
+++ b/lisp/nxml/xmltok.el
@@ -750,7 +750,8 @@ Return the type of the token."
750 ;; Need do this after the goto-char because 750 ;; Need do this after the goto-char because
751 ;; marked error should just apply to <!-- 751 ;; marked error should just apply to <!--
752 (xmltok-add-error "First following `--' not followed by `>'") 752 (xmltok-add-error "First following `--' not followed by `>'")
753 'not-well-formed))))) 753 (goto-char (point-max))
754 'comment)))))
754 755
755(defun xmltok-scan-attributes () 756(defun xmltok-scan-attributes ()
756 (let ((recovering nil) 757 (let ((recovering nil)
diff --git a/test/indent/nxml.xml b/test/indent/nxml.xml
new file mode 100644
index 00000000000..61b84f270b0
--- /dev/null
+++ b/test/indent/nxml.xml
@@ -0,0 +1,10 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<spocosy version="1.0" responsetime="2011-03-15 13:53:12" exec="0.171">
3 <!--
4 <query-response requestid="" service="objectquery">
5 <sport name="Soccer" enetSportCode="s" del="no" n="1" ut="2009-12-29
6 15:36:24" id="1">
7 </sport>
8 </query-response>
9 -->
10</spocosy>