GNU bug report logs - #30561
25.2.50; sh-mode indentation for ? case wrong

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Tue, 20 Feb 2018 23:21:02 UTC

Severity: minor

Tags: confirmed

Found in versions 25.2.50, 27.0.50, 26.1

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 30561 <at> debbugs.gnu.org
Subject: bug#30561: 25.2.50; sh-mode indentation for ? case wrong
Date: Sun, 29 Sep 2019 00:10:39 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

> 1. emacs -Q
> 2. Open file tmp.sh with contents (defaults to sh-mode):
>
> case "$1" in
> foo)
> echo foo
> ;;
> ?)
> echo bar
> ;;
> esac
>
> 3. C-x h TAB
>
> Expected:
>
> case "$1" in
>      foo)
>          echo foo
>          ;;
>      ?)
>          echo bar
>          ;;
> esac
>
>
> Actual:
>
> case "$1" in
>      foo)
>          echo foo
>          ;;
>      ?)
>      echo bar
>      ;;
> esac
>
> In GNU Emacs 25.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11),
> modified by Debian
> Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
> System Description: Debian GNU/Linux rodete (upgraded from: Ubuntu 14.04
> LTS)

I can reproduce this on Emacs 26.1 and current master.

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 262 days ago.

Previous Next


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