--- Begin Message ---
Subject: |
auto-fill scan-error in sh-mode |
Date: |
Wed, 10 Dec 2014 16:51:22 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#19342: auto-fill scan-error in sh-mode |
Date: |
Fri, 06 May 2022 11:11:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen [2022-05-06 17:03:24] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> 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
--- End Message ---