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

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

Re: Shell-script[bash] indention broken (or fixed?)


From: Stefan Monnier
Subject: Re: Shell-script[bash] indention broken (or fixed?)
Date: Mon, 13 Jun 2005 14:55:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     Personally, I like and find useful the indentation of the continued
>     lines. It's almost never inappropriate (for me); though one could even
>     write weird things like:

>     this_is_a_single_\
>     command_name

> In Lisp mode, TAB leaves continuation lines unchanged.
> It seems to me that that is the right thing to do.
> What do people think of changing sh-script.el to do that?

I think it would be good as an option, but the default should stay as it is.
Continuation lines in sh are used in many more cases than in Lisp.
Quite often they're used to spread command arguments on several lines,
in which case indentation is really what you want.

Maybe a compromise would be to do the following: if the "\\\n" is preceded
by a space or a tab, then the following line should be indented, otherwise
it should be left untouched.


        Stefan




reply via email to

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