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: Sun, 12 Jun 2005 16:51:06 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> To my way of thinking, the '\' says I'm breaking the line for the sake of the
> human reader, but the computer should not see the linebreak.

Indeed, and to make the thing more readable, it is common practice to
arrange for the indentation to help the reader figure out where the
broken-line finishes and ends (otherwise, it really doesn't help the human
reader much).  Your shell example is a prime example, where you used
a single space of indentation.

Of course, sometimes the exact number of spaces/tabs shouldn't be touched by
Emacs, but I don't think there's a way for Emacs to figure it out, and the
(relative) lack of complaint over the current default indentation choice
seems to indicate that this default is a good choice.


        Stefan




reply via email to

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