[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: POC comment/uncomment region in nxml-mode
From: |
Stefan Monnier |
Subject: |
Re: POC comment/uncomment region in nxml-mode |
Date: |
Wed, 20 Aug 2014 10:13:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> All, the other innovation I want to make is to comment regions in XML
> with a single pair of <!-- --> instead of commenting every line. Can
> anyone point me to the history of why line-by-line XML comments are
> the norm in Emacs, even though XML supports block comments?
That's just the default `comment-style', globally.
You probably want to configure it to something else globally as well
(assuming you don't like line-by-line commenting with /*...*/ in
C either, for example).
> Also, have any insights to share re. relationship between
> un/comment-region and comment-dwim? These specifics are all new to me,
> but I'm a quick study who is motivated to make emacs better.
comment-dwim is just a wrapper that calls different comment operations
(e.g. comment-region, comment-kill, ...) depending on "context".
Stefan