Subject: bug#15613: Wrong indentation in Shell-script[sh] mode?

From: Glenn Morris <[email-masked]>
Date: Wed, 16 Oct 2013 22:03:14 -0400

Stefan Monnier wrote:

>> By experiment, reverting the "Always setup SMIE..." part of your
>> 2013-10-11 change fixes this regression.
>
> Aha!  I'll try and see why that introduces such breakage.
> Probably a call to backward-sexp somewhere.

This specific problem seems due to smie-setup's

  (setq-local forward-sexp-function #'smie-forward-sexp-command)