unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tim Chambers <tbchambers@gmail.com>
Cc: tbc@alum.mit.edu, andreas.roehler@online.de,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: POC comment/uncomment region in nxml-mode
Date: Wed, 20 Aug 2014 10:13:47 -0400	[thread overview]
Message-ID: <jwvmwazfe24.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CABoxX=xL3PWuj4rmL6d_3aNYDaRZ4dDB60jJrrHbMW2CKq6K+w@mail.gmail.com> (Tim Chambers's message of "Tue, 19 Aug 2014 09:12:25 -0600")

> 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



      reply	other threads:[~2014-08-20 14:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 23:22 POC comment/uncomment region in nxml-mode Tim Chambers
2014-07-23  6:36 ` Andreas Röhler
2014-08-18 15:31 ` Stefan Monnier
2014-08-19 15:12   ` Tim Chambers
2014-08-20 14:13     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmwazfe24.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=tbc@alum.mit.edu \
    --cc=tbchambers@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).