From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: POC comment/uncomment region in nxml-mode Date: Wed, 20 Aug 2014 10:13:47 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408544068 20439 80.91.229.3 (20 Aug 2014 14:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 14:14:28 +0000 (UTC) Cc: tbc@alum.mit.edu, andreas.roehler@online.de, "emacs-devel@gnu.org" To: Tim Chambers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 20 16:14:18 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XK6eY-0005HD-Hy for ged-emacs-devel@m.gmane.org; Wed, 20 Aug 2014 16:14:18 +0200 Original-Received: from localhost ([::1]:55971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6eY-0003Js-2D for ged-emacs-devel@m.gmane.org; Wed, 20 Aug 2014 10:14:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6eC-0003Hb-Ro for emacs-devel@gnu.org; Wed, 20 Aug 2014 10:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK6e5-0006oa-Ba for emacs-devel@gnu.org; Wed, 20 Aug 2014 10:13:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6e5-0006oT-82 for emacs-devel@gnu.org; Wed, 20 Aug 2014 10:13:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVPAqyKr/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBJy8cBwULCw4mEhQYDSSIBAjSGReOegeEOAEDqwODTCE X-IPAS-Result: ArUGAIDvNVPAqyKr/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBJy8cBwULCw4mEhQYDSSIBAjSGReOegeEOAEDqwODTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="87271207" Original-Received: from 192-171-34-171.cpe.pppoe.ca (HELO pastel.home) ([192.171.34.171]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Aug 2014 10:13:47 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 90CC564141; Wed, 20 Aug 2014 10:13:47 -0400 (EDT) In-Reply-To: (Tim Chambers's message of "Tue, 19 Aug 2014 09:12:25 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173776 Archived-At: > 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