Subject: Re: bug#22717: 25.0.91; sh-mode indentation bug with opening parens at the beginnings of lines, and apostrophes

From: Noam Postavsky <[email-masked]>
Date: Thu, 20 Jun 2019 07:21:56 -0400

tags 22717 fixed
close 22717 27.1
quit

Phil Sainty <[email-masked]> writes:

> I've come up with the following test case:
>
> #!/bin/sh
> echo "
> (" # Opening parenthesis at the beginning of a line
>
> if true; then
>     # Here's an apostrophe
> fi # ...and now this will be indented -- aligned with the apostrophe
>
>
> If you auto-indent that, the final line gets indented to align
> with the column containing the apostrophe in the preceding comment.

This is fixed in master, probably by [1: 14b9558752].

[1: 14b9558752]: 2017-12-12 23:03:00 -0500
  * src/syntax.c (find_defun_start): Use syntax-ppss
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=14b95587520959c5b54356547a0a69932a9bb480