Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: [PATCH] Unit movement
Home

[Freeciv-Dev] Re: [PATCH] Unit movement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [PATCH] Unit movement
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Jan 2001 13:48:18 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxxxx

On Sat, Jan 13, 2001 at 07:59:39PM -0500, Greg Wooledge wrote:
> Raimar Falke (hawk@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> 
> > I can't use indent for the reasons stated below. And I don't know a
> > tool which will ident only a part of a file or a patch.
> 
> The GNU version of indent, at least, can read from standard input and write
> to standard output.  Therefore you can do it in vi.
> 
> ma                -> set mark "a"
> !'aindent <Enter> -> pipe the block of text from the cursor to mark "a"
>                    through indent and replace it with the output thereof
> 

Thanks for pointing this out. Since indent only sees some part of the
code it doesn't know the starting level. Nevertheless its better than
nothing.

> Although I don't know emacs very well, I'd be surprised if it can't do
> the same thing.

shell-command-on-region

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Tank: So what do you need? Besides a miracle.
  Neo: Guns. Lots of guns.
    -- From The Matrix



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