help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Indent region


From: Alan
Subject: Re: Indent region
Date: Mon, 24 Aug 2009 08:16:48 -0700 (PDT)
User-agent: G2/1.0

On Aug 24, 9:55 am, Rodolfo Medina <rodolfo.med...@gmail.com> wrote:
> `C-u 10 C-x TAB' or `C-M-\' indent a region `line by line', whereas I want the
> whole region to be indented, like:
>
>     The old lady pulled her spectacles down and looked over them about the
>     room; then she put them up and looked out under them. She seldom or never
>     looked through them for so small a thing as a boy; they were her state
>     pair, the pride of her heart, and were built for "style," not service --
>     she could have seen through a pair of stove-lids just as well. She looked
>     perplexed for a moment, and then said, not fiercely, but still loud enough
>     for the furniture to hear:
>
> .  In Emacs manual I couldn't find an answer to the problem.
>
> Thanks for any help
> Rodolfo

C-x r t runs `string-rectangle'

`string-rectangle' is an interactive compiled Lisp function
  -- loaded from "rect"
(string-rectangle START END STRING)

Documentation:
Insert STRING on each line of the region-rectangle, shifting text
right.
The left edge of the rectangle specifies the column for insertion.

If `pending-delete-mode' is active the string replace the region.
Otherwise this command does not delete or overwrite any existing text.

When called from a program, the rectangle's corners are START and END.


reply via email to

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