[Top][All Lists]
[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
20080228-sh-script.diff
Description: Text Data
- Re: shell-script indenting of &&, |, jidanni, 2008/02/26
- Re: shell-script indenting of &&, |, David Kastrup, 2008/02/27
- Re: shell-script indenting of &&, |, Andreas Röhler, 2008/02/27
- Re: shell-script indenting of &&, |, Stefan Monnier, 2008/02/27
- Re: shell-script indenting of &&, |, jidanni, 2008/02/27
- Re: shell-script indenting of &&, |,
Andreas Röhler <=
- Re: shell-script indenting of &&, |, Andreas Röhler, 2008/02/29
- Re: shell-script indenting of &&, |, Chong Yidong, 2008/02/29
- Re: shell-script indenting of &&, |, Chong Yidong, 2008/02/29