From b262bde327db2cd9b2f01f2d3ed946d0b188cb9d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 16 Apr 2014 11:28:26 -0400 Subject: [PATCH] * 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 --- lisp/ChangeLog | 5 +++++ lisp/nxml/nxml-mode.el | 2 +- lisp/nxml/xmltok.el | 3 ++- test/indent/nxml.xml | 10 ++++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 test/indent/nxml.xml diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 38f71bdd78d..e974b30700b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,10 @@ 2014-04-16 Stefan Monnier + * nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization + was done (bug#17264). + * nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed + comment to EOB. + * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in here-documents (bug#17262). 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." (defun nxml-fontify-matcher (bound) "Called as font-lock keyword matcher." - + (syntax-propertize bound) (unless nxml-degraded (nxml-debug-change "nxml-fontify-matcher" (point) bound) 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." ;; Need do this after the goto-char because ;; marked error should just apply to + -- 2.39.5