emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: GNU bug Tracking System
Subject: bug#19342: closed (auto-fill scan-error in sh-mode)
Date: Fri, 06 May 2022 15:12:03 +0000

Your message dated Fri, 06 May 2022 11:11:08 -0400
with message-id <jwvwney8znl.fsf-monnier+emacs@gnu.org>
and subject line Re: bug#19342: auto-fill scan-error in sh-mode
has caused the debbugs.gnu.org bug report #19342,
regarding auto-fill scan-error in sh-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
19342: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19342
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]