GNU bug report logs - #17896
sh-mode excessive indentation of {}

Previous Next

Package: emacs;

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

Date: Wed, 2 Jul 2014 01:47:01 UTC

Severity: minor

Found in version 24.3.92

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Subject: bug#17896: closed (Re: bug#17896: sh-mode excessive indentation
 of {})
Date: Tue, 08 Jul 2014 18:39:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#17896: sh-mode excessive indentation of {}

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 17896 <at> debbugs.gnu.org.

-- 
17896: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17896
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17896-done <at> debbugs.gnu.org
Subject: Re: bug#17896: sh-mode excessive indentation of {}
Date: Tue, 08 Jul 2014 14:38:28 -0400
> for foo in bar; do
>     [ -e $foo ] && [ -e $bar ] && {
>                        echo way too much indent here
>                    }
> done

I believe this is now fixed, thanks,


        Stefan

[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: sh-mode excessive indentation of {}
Date: Tue, 01 Jul 2014 21:46:54 -0400
Package: emacs
Version: 24.3.92
Severity: minor

I don't know if this is a related to any of the previous sh-mode indent
reports I made, so I'm making a new report.

emacs -Q foo.sh:

for foo in bar; do
    [ -e $foo ] && [ -e $bar ] && {
                       echo way too much indent here
                   }
done


Compare with 24.3:

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



This bug report was last modified 10 years and 322 days ago.

Previous Next


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