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

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

bug#54499: 28.0.92; strange indentation in shell function


From: Lars Ingebrigtsen
Subject: bug#54499: 28.0.92; strange indentation in shell function
Date: Mon, 21 Mar 2022 18:09:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> When editing a shell-function with cursor behind "batch \" -- see code
> below -- RET inserts a newline and indents onto a strange big amount.
>
> It inserts 2 TABs followed by 4 spaces so "--eval" is at colon with "-p".
>
> Soo also attached foo1.png. BWT whitespace-mode is hardly readable
> from emacs -Q
>
> ------
> #!/bin/sh
>
> foo1() { date; time -p emacs -Q -L . --batch \
>                                --eval "(message (emacs-version))"
> }
>
> foo1
> ------

Your message had odd whitespace, but I think we're seeing the same thing:


foo1() { date; time -p emacs -Q -L . --batch \
                    --eval "(message (emacs-version))"
}


And that looks like the correct indentation to me?  That is, we indent
after the "time" on the previous line.

What indentation did you expect to get?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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