From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8515: M-x indent-region should skip everything between
-tags.
Date: Tue, 19 Apr 2011 09:59:13 -0300
Message-ID: 
References: <87r5909043.fsf@raven.defaultvalue.org>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: dough.gmane.org 1303218469 25081 80.91.229.12 (19 Apr 2011 13:07:49 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Tue, 19 Apr 2011 13:07:49 +0000 (UTC)
Cc: 8515@debbugs.gnu.org, Juhapekka Tolvanen ,
	448563-forwarded@bugs.debian.org
To: Rob Browning 
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 19 15:07:45 2011
Return-path: 
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([140.186.70.17])
	by lo.gmane.org with esmtp (Exim 4.69)
	(envelope-from )
	id 1QCAec-0001rQ-LO
	for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Apr 2011 15:07:42 +0200
Original-Received: from localhost ([::1]:46210 helo=lists2.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from )
	id 1QCAec-0003Nn-3a
	for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Apr 2011 09:07:42 -0400
Original-Received: from eggs.gnu.org ([140.186.70.92]:60764)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from ) id 1QCAeQ-0003Eo-NK
	for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2011 09:07:39 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from ) id 1QCAeM-0005Zz-LZ
	for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2011 09:07:30 -0400
Original-Received: from debbugs.gnu.org ([140.186.70.43]:46948)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from ) id 1QCAeM-0005Zv-Im
	for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2011 09:07:26 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69)
	(envelope-from )
	id 1QCAXE-0002NP-18; Tue, 19 Apr 2011 09:00:04 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Stefan Monnier 
Original-Sender: debbugs-submit-bounces@debbugs.gnu.org
Resent-To: owner@debbugs.gnu.org
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 19 Apr 2011 13:00:03 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 8515
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
Original-Received: via spool by 8515-submit@debbugs.gnu.org id=B8515.13032179679065
	(code B ref 8515); Tue, 19 Apr 2011 13:00:03 +0000
Original-Received: (at 8515) by debbugs.gnu.org; 19 Apr 2011 12:59:27 +0000
Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from )
	id 1QCAWc-0002MA-HE
	for submit@debbugs.gnu.org; Tue, 19 Apr 2011 08:59:26 -0400
Original-Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from ) id 1QCAWZ-0002Lw-Ky
	for 8515@debbugs.gnu.org; Tue, 19 Apr 2011 08:59:24 -0400
Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:52268
	helo=ceviche.home)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from )
	id 1QCAWT-0007pX-EB; Tue, 19 Apr 2011 08:59:17 -0400
Original-Received: by ceviche.home (Postfix, from userid 20848)
	id 623CE662E4; Tue, 19 Apr 2011 09:59:13 -0300 (ART)
In-Reply-To: <87r5909043.fsf@raven.defaultvalue.org> (Rob Browning's message
	of "Sun, 17 Apr 2011 13:57:48 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Resent-Date: Tue, 19 Apr 2011 09:00:04 -0400
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" 
List-Unsubscribe: ,
	
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
	
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.bugs:45868
Archived-At: 

> The following bug report (or perhaps feature request) was filed with the
> Debian tracker, and I wanted to ask your opinion about the issue.

The behavior of auto-indentation within things like 
...
(or here-docs in sh scripts, or strings in other languages, ...) is indeed not perfect, is inconsistent between major modes, and moreover it's always clear what is the best behavior. I think what should happen is: - indent-region should not modify those lines. - indent-according-to-mode should not modify those lines either. - indent-for-tab-command should behave as if in text-mode (i.e. call something like indent-relative). Ideally, this should be recognized and treated as a case of "multiple major modes" and you should even be able to specify what major mode to use within the
...
region, so that the indentation there can be better than text-mode's. Stefan