GNU bug report logs - #17721
sh-mode indentation of {} or () inside do or if

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Fri, 6 Jun 2014 23:18:02 UTC

Severity: minor

Found in version 24.3.91

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17721 in the body.
You can then email your comments to 17721 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17721; Package emacs. (Fri, 06 Jun 2014 23:18:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: sh-mode indentation of {} or () inside do or if
Date: Fri, 06 Jun 2014 19:17:54 -0400
Package: emacs
Version: 24.3.91

emacs -Q foo.sh

for foo in bar; do
    [ -e $foo ] && {
        echo t
    }
done


The above is how 24.3 indents it. 24.3.91 does the following:

for foo in bar; do
    [ -e $foo ] && {
    echo t
}
done


Same issue with if...fi rather than do...done,
and with () rather than {}.




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Fri, 20 Jun 2014 14:25:01 GMT) Full text and rfc822 format available.

Notification sent to Glenn Morris <rgm <at> gnu.org>:
bug acknowledged by developer. (Fri, 20 Jun 2014 14:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 17721-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17721-done <at> debbugs.gnu.org
Subject: Re: bug#17721: sh-mode indentation of {} or () inside do or if
Date: Fri, 20 Jun 2014 10:24:37 -0400
> for foo in bar; do
>     [ -e $foo ] && {
>     echo t
> }
> done

Should be fixed now,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Jul 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 51 days ago.

Previous Next


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