From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.bugs Subject: Re: Pattern-blocks auto-indentation problem. Date: Sun, 01 Jun 2003 13:37:50 -0400 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200306011737.h51HboZ8012165@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054489013 2178 80.91.224.249 (1 Jun 2003 17:36:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2003 17:36:53 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 19:36:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MWlF-0000Ya-00 for ; Sun, 01 Jun 2003 19:36:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MWnF-0003vL-TU for gnu-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2003 13:38:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19MWmb-000395-LR for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2003 13:38:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MWmO-0002xg-IE for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2003 13:38:02 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MWmH-0002wJ-R3 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2003 13:37:53 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h51Hbp0i012167; Sun, 1 Jun 2003 13:37:51 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h51HboZ8012165; Sun, 1 Jun 2003 13:37:50 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Disruptor X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5211 > Steps to reproduce: > 0) acquire the 'test_before.sh' attatchment > 1) C-x C-f test_before.sh > 2) C-x C-p and M-C-\ > > The resulting script I get is 'test_after.sh': > - Only the 1st case is auto-indented correctly. > - Cases #2 and #3 are 'semi-indented'. > - Cases #4 and #5 are not indented at all. > - Case #6 is semi-indented. Please check the code I just checked in. It fixes your testcase for me. Tell me if you bump into other such problems for different patterns, Stefan