GNU bug report logs - #17621
sh-mode indentation of continued lines in case statements

Previous Next

Package: emacs;

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

Date: Wed, 28 May 2014 21:58: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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17621: closed (sh-mode indentation of continued lines in case
 statements)
Date: Fri, 20 Jun 2014 12:01:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 20 Jun 2014 07:59:53 -0400
with message-id <jwvmwd8tsug.fsf-monnier+bug#17621 <at> gnu.org>
and subject line Re: bug#17621: sh-mode indentation of continued lines in case statements
has caused the debbugs.gnu.org bug report #17621,
regarding sh-mode indentation of continued lines in case statements
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
17621: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17621
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: sh-mode indentation of continued lines in case statements
Date: Wed, 28 May 2014 17:57:04 -0400
Package: emacs
Version: 24.3.91
Severity: minor

emacs -Q --eval '(setq-default indent-tabs-mode nil)' foo.sh, where
foo.sh is as follows:

case $foo in
    bar)
            true && \
                echo foo
            ;;
esac

The above is the 24.3 indentation.
In 24.3.91, it indents like:

case $foo in
    bar)
        true && \
        echo foo
        ;;
esac


1. Body of case branch not indented as far (this may an improvement).
2. Continued line not indented (this is a bug).


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17621-done <at> debbugs.gnu.org
Subject: Re: bug#17621: sh-mode indentation of continued lines in case
 statements
Date: Fri, 20 Jun 2014 07:59:53 -0400
> case $foo in
>     bar)
>         true && \
>         echo foo
>         ;;
> esac

This should be fixed now (and also when the backslash is absent).


        Stefan


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

Previous Next


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