Subject: bug#19342: closed (Re: bug#19342: auto-fill scan-error in sh-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 06 May 2022 15:12:03 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19342: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19342
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19342: auto-fill scan-error in sh-mode
From: Stefan Monnier <[email-masked]>
To: Lars Ingebrigtsen <[email-masked]>
Cc: Glenn Morris <[email-masked]>, [email-masked]
Date: Fri, 06 May 2022 11:11:08 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Lars Ingebrigtsen [2022-05-06 17:03:24] wrote:
> Stefan Monnier <[email-masked]> writes:
>> So if we want to silence the message, all it takes is to use
>> `ignore-error` instead as in the patch below, no?
>
> [...]
>
>>          (while
>> -            (and (with-demoted-errors "SMIE Error: %S"
>> +            (and (ignore-error scan-error
>
> Yup; that fixes the problem.

Pushed, thanks,

        Stefan

Subject: auto-fill scan-error in sh-mode
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 10 Dec 2014 16:51:22 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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)