all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#30561: 25.2.50; sh-mode indentation for ? case wrong
@ 2018-02-20 23:20 Allen Li
  2019-09-28 22:10 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Allen Li @ 2018-02-20 23:20 UTC (permalink / raw)
  To: 30561

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)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#30561: 25.2.50; sh-mode indentation for ? case wrong
  2018-02-20 23:20 bug#30561: 25.2.50; sh-mode indentation for ? case wrong Allen Li
@ 2019-09-28 22:10 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2019-09-28 22:10 UTC (permalink / raw)
  To: Allen Li; +Cc: 30561

Allen Li <darkfeline@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-28 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-20 23:20 bug#30561: 25.2.50; sh-mode indentation for ? case wrong Allen Li
2019-09-28 22:10 ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.