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

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

Re: Indent region


From: Rodolfo Medina
Subject: Re: Indent region
Date: Mon, 24 Aug 2009 23:28:53 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux)

"B. T. Raven" <nihil@nihilo.net> writes:

>>> Rodolfo Medina 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
>>>>
>>>> .  In Emacs manual I couldn't find an answer to the problem.
>>
>>
>>
>>
>> "B. T. Raven" <nihil@nihilo.net> writes:
>>
>>> At beginning of region do:
>>>
>>> C-space
>>>
>>> move to last line of region
>>> move cursor rightward as far as you want the region indented
>>>
>>> do:
>>> C-x r o
>>
>>
>> Thanks, but that's the same as `C-u 10 C-x TAB' or `C-M-\': each line of the
>> region is indented separately, but not the region all together, as in my
>> example.
>>
>> Rodolfo
>
> I understand the distinction in theory. What does it amount to in practice? If
> I copy-paste your original paragraph into Emacs (from Thunderbird) there are
> linefeeds after the, never, state, service --, 
> etc. What you show above has changes (possibly due to word wrap or quote
> prefixes). A paragraph is defined by paragraph-separate and paragraph-start, I
> think. Is the original paragraph(s) one long line in Emacs? If not then there
> are line-feeds within the paragraph(s) (or region) and it will have to be
> treated as individual lines.



All I want is the same that `M-q' does, only that the paragraph lines should
all begin from column, say, 10 instead of 1.  It looks strange to me that it
is, as I see, difficult and original.

Thanks
Rodolfo


reply via email to

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