Subject: bug#19342: auto-fill scan-error in sh-mode

From: Stefan Kangas <[email-masked]>
Date: Wed, 12 Aug 2020 09:44:18 -0700

found 19342 28.0.50
tags 19342 + confirmed
thanks

Glenn Morris <[email-masked]> writes:

> Package: emacs
> Version: 24.4
>
> emacs -Q /tmp/foo.sh
> M-x auto-fill-mode
>
> Type a long string with spaces, past fill-column; eg:
>
> foo="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa aaaaaaaaaa
>
> Auto-fill results in:
>
> Error: (scan-error "Containing expression ends prematurely" 75 75)

I can reproduce this on current master.

Best regards,
Stefan Kangas