diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 9b780a91721..b1666156ecc 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -1430,6 +1430,8 @@ either nil or one of the symbols `start-tag', `end-tag', `markup', (if (memq context '(nil end-tag comment)) 'end-tag 'mixed)) + ((eq xmltok-type 'cdata-section) + (or context 'markup)) ((eq xmltok-type 'comment) (cond ((memq context '(start-tag end-tag comment)) context) @@ -1519,7 +1521,9 @@ OPEN-DELIM and CLOSE-DELIM are strings giving the opening and closing delimiters. POS is the position of the first non-whitespace character of the line. This expects the xmltok-* variables to be set up as by `xmltok-forward'." - (cond ((let ((end (+ pos (length close-delim)))) + (cond ((string= open-delim "