emacs-devel
[Top][All Lists]
Advanced

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

Re: shell-script indenting of &&, |


From: Andreas Röhler
Subject: Re: shell-script indenting of &&, |
Date: Thu, 28 Feb 2008 14:07:45 +0100
User-agent: KMail/1.9.5

Am Mittwoch, 27. Februar 2008 20:26 schrieb address@hidden:
> >> Line 2 must not, as it's top level IMO.
>
> oops.
>
> >> As `&&' may be considered as if-then form, I would
> >> welcome indentation for lines 3 and 4.
> >>
> >> Respective following ||
>
> Anyways, backslash-newline continuation lines are indented. Just use
> the same formula.


Thanks for the hint.

Indeed nearly all what had to be done was introducing a
new function `sh-short-if'. 

It proceeds respectivly to `sh-this-is-a-continuation',
which already handles the final "/".

Patch attached.

Andreas Röhler

Attachment: 20080228-sh-script.diff
Description: Text Data


reply via email to

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