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: Greg Wooledge <greg@xxxxxxxxxxxx>
Date: Sat, 13 Jan 2001 19:59:39 -0500

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

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

-- 
*** Please note new address. -->  |  Greg Wooledge
                                  |  greg@xxxxxxxxxxxx
"Truth belongs to everybody."     |  http://wooledge.org/~greg/
  Red Hot Chili Peppers           |  old page: http://www.kellnet.com/wooledge/

Attachment: pgpdHw3mjyFae.pgp
Description: PGP signature


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