bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Glenn Morris
Subject: bug#17721: sh-mode indentation of {} or () inside do or if
Date: Fri, 06 Jun 2014 19:17:54 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]