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: Allen Li <darkfeline <at> felesatra.moe>
To: 30561 <at> debbugs.gnu.org
Subject: bug#30561: 25.2.50; sh-mode indentation for ? case wrong
Date: Tue, 20 Feb 2018 23:20:01 +0000
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)




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

Previous Next


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