[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alterative to tc-indent-region?
From: |
Reiner Steib |
Subject: |
Re: Alterative to tc-indent-region? |
Date: |
Wed, 11 Jul 2007 21:34:59 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
On Tue, Jul 10 2007, David Z Maze wrote:
> Svend Tollak Munkejord <stm-direct_reply@pvv.org> writes:
>
>> Is there a function in standard No Gnus that resembles
>> tc-indent-region from Trivial Cite? (I didn't find any.)
>> tc-indent-region inserts ">" in front of each line, and it is
>> practical if you want to fix replies to replies made e.g. using
>> Outlook.
,----[ `<f1> k M-;' ]
| M-; runs the command comment-region
| which is an interactive compiled Lisp function in `newcomment'.
| It is bound to M-;.
| (comment-region beg end &optional arg)
|
| Comment or uncomment each line in the region.
| With just C-u prefix arg, uncomment each line in region beg .. end.
| Numeric prefix arg means use arg comment characters.
| If arg is negative, delete that many comment characters instead.
| By default, comments start at the left margin, are terminated on each line,
| even for syntax in which newline does not end the comment and blank lines
| do not get comments. This can be changed with `comment-style'.
|
| The strings used as comment starts are built from
| `comment-start' without trailing spaces and `comment-padding'.
`----
> I might just use M-x replace-regexp ^ > to insert a > at the start of
> each line.
>
> (Bizarrely, this is something I know how to do *easier* in vi: move to
> start of current region, use C-g to find the current line number, move
> to end of region, then do :97,.s/^/>/ where 97 was that earlier line
> number to do the same replace-regexp.)
At least in Emacs 22, `query-replace' and `query-replace-regexp'
operate on the region. Less complicated than finding and remembering
the line number, IMO.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/