unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17721: sh-mode indentation of {} or () inside do or if
@ 2014-06-06 23:17 Glenn Morris
  2014-06-20 14:24 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2014-06-06 23:17 UTC (permalink / raw)
  To: 17721

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 {}.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#17721: sh-mode indentation of {} or () inside do or if
  2014-06-06 23:17 bug#17721: sh-mode indentation of {} or () inside do or if Glenn Morris
@ 2014-06-20 14:24 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-06-20 14:24 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17721-done

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

Should be fixed now,


        Stefan





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-20 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 23:17 bug#17721: sh-mode indentation of {} or () inside do or if Glenn Morris
2014-06-20 14:24 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).