emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nxml-mode: commenting regions with comments


From: Karl Eichwalder
Subject: nxml-mode: commenting regions with comments
Date: Thu, 16 Aug 2012 15:30:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

comment-region fails to "escape" xml comments properly (Emacs 24.1).
For example, if you want to comment "<!-- foo -->", instead of

    <!-- <\!-- foo -\-> -->
         ^^^^^

insert the "escaping" backslash in the comment-open part between the
dashes:

    <!-- <!-\- foo -\-> -->
         ^^^^^

This is needed because "--" is not allowed in comments (because that
actually ends a comment).

-- 
Karl Eichwalder



reply via email to

[Prev in Thread] Current Thread [Next in Thread]