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

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

bug#46093: closed (Shell-script mode formatting error eats half the page


From: GNU bug Tracking System
Subject: bug#46093: closed (Shell-script mode formatting error eats half the page)
Date: Sat, 14 Oct 2023 15:03:03 +0000

Your message dated Sat, 14 Oct 2023 11:01:40 -0400
with message-id <jwvpm1hjljr.fsf-monnier+emacs@gnu.org>
and subject line Re: bug#2910: 23.0.60; Shell-script coloring bug
has caused the debbugs.gnu.org bug report #26217,
regarding Shell-script mode formatting error eats half the page
to be marked as done.

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


-- 
26217: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26217
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Shell-script mode formatting error eats half the page Date: Mon, 25 Jan 2021 12:40:44 +0800
Here we observe lines severely shoved over due to Shell-script mode not
recognizing the statement has terminated. emacs-version "27.1".

$ cat x.sh
set /home/$j/.adobe /home/$j/.macromedia && for i do if test -d $i; then rm -vr 
$i; fi; done
                                                echo these lines are now 
indented wrongly
                                                echo these lines are now 
indented wrongly for the rest of the file.
                                                echo There is no recovery.

"Well then use if ...; then ..."

if set /home/$j/.adobe /home/$j/.macromedia
then for i do if test -d $i; then rm -vr $i; fi; done
     fi #UH OH, STILL MESSED UP
         set /home/$j/.procmail/backup #UH OH EVEN MORE
         if ! test -d $1 #AT LEAST INDENTING HAS STABILIZED finally



if set /home/$j/.adobe /home/$j/.macromedia
then
    for i do if test -d $i; then rm -vr $i; fi; done
    fi #STILL BAD


if set /home/$j/.adobe /home/$j/.macromedia
then
    for i
    do if test -d $i; then rm -vr $i; fi; done
fi #AH, FINALLY it has come to its senses.



--- End Message ---
--- Begin Message --- Subject: Re: bug#2910: 23.0.60; Shell-script coloring bug Date: Sat, 14 Oct 2023 11:01:40 -0400 User-agent: Gnus/5.13 (Gnus v5.13)
>> I haven't found problems, but I'm suspicious because it seems too easy.
> Welcome to the world of Emacs, where "if it's easy it must be right".

BTW, pushed to `master`, thank you.


        Stefan



--- End Message ---

reply via email to

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