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


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17621 <at> debbugs.gnu.org
Subject: Re: bug#17621: sh-mode indentation of continued lines in case
 statements
Date: Wed, 28 May 2014 22:33:50 -0400
> 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).

Indeed, the old indentation you show seems like a bug, tho I can't
remember bumping into it.

> 2. Continued line not indented (this is a bug).

I agree that this is a surprising behavior (I'm friends with the
indentation code and I understand where he comes from, so by respect
for him I avoid the "b" word).

The same holds without the "\", by the way.


        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.