GNU bug report logs - #25768
25.1; wrong indent in shell-script-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Frank Breitling <frank.breitling@HIDDEN>; dated Fri, 17 Feb 2017 00:55:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Feb 2017 00:54:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 16 19:54:41 2017
Received: from localhost ([127.0.0.1]:42830 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ceWoq-0002BA-Pj
	for submit <at> debbugs.gnu.org; Thu, 16 Feb 2017 19:54:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56123)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <frank.breitling@HIDDEN>) id 1ceVQd-00008x-SB
 for submit <at> debbugs.gnu.org; Thu, 16 Feb 2017 18:25:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <frank.breitling@HIDDEN>) id 1ceVQX-00079U-MJ
 for submit <at> debbugs.gnu.org; Thu, 16 Feb 2017 18:25:30 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44176)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <frank.breitling@HIDDEN>)
 id 1ceVQX-00079N-JD
 for submit <at> debbugs.gnu.org; Thu, 16 Feb 2017 18:25:29 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47072)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <frank.breitling@HIDDEN>) id 1ceVQW-0001xU-5v
 for bug-gnu-emacs@HIDDEN; Thu, 16 Feb 2017 18:25:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <frank.breitling@HIDDEN>) id 1ceVQR-00075d-8u
 for bug-gnu-emacs@HIDDEN; Thu, 16 Feb 2017 18:25:28 -0500
Received: from mout.gmx.net ([212.227.17.21]:60249)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <frank.breitling@HIDDEN>)
 id 1ceVQR-00073a-05
 for bug-gnu-emacs@HIDDEN; Thu, 16 Feb 2017 18:25:23 -0500
Received: from [192.168.1.20] ([77.179.14.138]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M7TQZ-1cQ7RX28eN-00xOLx for
 <bug-gnu-emacs@HIDDEN>; Fri, 17 Feb 2017 00:25:20 +0100
To: bug-gnu-emacs@HIDDEN
From: Frank Breitling <frank.breitling@HIDDEN>
Subject: 25.1; wrong indent in shell-script-mode
Message-ID: <4816d313-34c5-7c70-70c3-79c59fef5f75@HIDDEN>
Date: Fri, 17 Feb 2017 00:24:33 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:8JskeMwXolJGCeIg4DZyDxKx4MlRUxpLLls0rCcI2mZI7F7dR+1
 8TdqcwzrzM+sha12Adkr1M1QQP/8jlp3PW4p7qj6mRAFskviA/LXaWAUdK8reYsRgU5/pRk
 A5a5MpIhJIXm3zYd4CH9lwQaqPvRYrKn/yyjrzK1X4TQzoqeLjpTKX1S7eAqgYtJLw2ggLE
 jAUMFgOjNOaba+9M2NNbA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:vqZM9+EtXes=:OuvNj4pCY+/ibyngOLCYLh
 IzKvCV/SKYFxNpoQYBKbdwXqnnebmiadHgAYrgXnWlA8PYBIH0dUU0dbNG8QTNiGlTvoeL5uX
 OO/pp04zmt8D0+P4q3WvK6nkllfKNSJsEJOdyEnbAJLOIOjiaX6QUsTlCWlN6kEUEHw0+/kbd
 mdtPkmwk3cPVD4e0qrsH+8RQSrUsCfbS6hipChewxAaHOxqRdjI+NZaaXBwIfBllQ9i4IZGm+
 /t74DyichiLwBQryaTyv45E2yacc8Z2VFBDv5rKvx3+QxR3FZYfcvLCC7s3NNiIdFILsE1NhE
 +bSNZMkuBds8/r4OCyD3bNcyNmenIKorPDz1YQZiaB3LMZBBWqKZGSWBIT4FN3w4R30EhWt1F
 Wc6zqaUGINxqZCOEbBRbBrTVbx29ZE8u/lNk7G5fU9uRdS1yA+qThinA6x2x3jhlvW0U7cSYA
 AYqo/rPC5nSblYvKJaH2KlYTp3Grie7S2nevKcVinvleYmLNXg5qG2bE6vBNh25hChE1fklEA
 3ndVc56ObJrfcaLvO2S+/T7ofYas5UtJfNw+jtoVSbXev5AN/VV5HjSBW2UhBwhybePwvN8xS
 qw+zvjO5qz3k91aZ9mYoWUqL/bxEzAieMZRS3tT5etOwrMwJk441uG88B+Rs5+M+c7Z5M27XQ
 0IT+JL8MRafYYo+X1twd4W0Wqf+S398T1P9Q1hiFEzKSRhSDEwY21IAV8GQThYlN9qEz7EqCn
 uZTWkZck3waIsPKUpaRtzTho0Om/FsueqPUqYQpWqc6OUXzxScE9X1GQrcvg3Mv+U5kQZFpMg
 UBu3w23
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 16 Feb 2017 19:54:40 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

I get the following indentation for my bash script in shell-script mode:

for i in *; {
     echo $i
}
          echo done

The last indent is wrong and should be zero spaces.

I also discuss this problem at

https://emacs.stackexchange.com/questions/30745/wrong-indent-with-emacs-24-and-25-in-shell-script-mode

It also appears in emacs 24.


In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.5)
  of 2017-01-01, modified by Debian built on binet
System Description:     Debian GNU/Linux 9.0 (stretch)

Configured using:
  'configure --build x86_64-linux-gnu --prefix=/usr
  --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
  --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/si\
te-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/\
share/emacs/site-lisp
  --with-sound=alsa --build x86_64-linux-gnu --prefix=/usr
  --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
  --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/si\
te-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/\
share/emacs/site-lisp
  --with-sound=alsa --with-x=yes --with-x-toolkit=gtk3
  --with-toolkit-scroll-bars 'CFLAGS=-g -O2
  -fdebug-prefix-map=/build/emacs25-4Gc0bO/emacs25-25.1+1=.
  -fstack-protector-strong -Wformat -Werror=format-security -Wall'
  'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
   value of $LC_NUMERIC: en_US.UTF-8
   value of $LANG: en_US.utf8
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   show-paren-mode: t
   delete-selection-mode: t
   cua-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t





Acknowledgement sent to Frank Breitling <frank.breitling@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25768; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 17 Feb 2017 01:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.