Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: info-gnus-english@gnu.org
Subject: Re: Alterative to tc-indent-region?
Date: Wed, 11 Jul 2007 21:34:59 +0200	[thread overview]
Message-ID: <v9fy3uraxo.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <y68bqeknukz.fsf@contents-vnder-pressvre.mit.edu>

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/

  parent reply	other threads:[~2007-07-11 19:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10  9:56 Svend Tollak Munkejord
2007-07-10 15:31 ` David Z Maze
2007-07-11  6:56   ` Svend Tollak Munkejord
2007-07-11 19:34   ` Reiner Steib [this message]
2007-07-12  7:05     ` Svend Tollak Munkejord
2007-07-12 16:30       ` Reiner Steib
2007-07-13  6:46         ` Svend Tollak Munkejord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9fy3uraxo.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).