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

To reply to this bug, email your comments to 30561 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30561; Package emacs. (Tue, 20 Feb 2018 23:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Allen Li <darkfeline <at> felesatra.moe>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Feb 2018 23:21:02 GMT) Full text and rfc822 format available.

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

From: Allen Li <darkfeline <at> felesatra.moe>
To: bug-gnu-emacs <at> gnu.org
Subject: 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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30561; Package emacs. (Sat, 28 Sep 2019 22:11:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 30561 <at> debbugs.gnu.org
Subject: Re: 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




bug Marked as found in versions 26.1. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 28 Sep 2019 22:12:01 GMT) Full text and rfc822 format available.

bug Marked as found in versions 27.0.50. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 28 Sep 2019 22:12:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 28 Sep 2019 22:12:02 GMT) Full text and rfc822 format available.

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.