Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Svend Tollak Munkejord <stm-direct_reply@pvv.org>
To: info-gnus-english@gnu.org
Subject: Re: Alterative to tc-indent-region?
Date: Thu, 12 Jul 2007 09:05:56 +0200	[thread overview]
Message-ID: <hddtzsa5cff.fsf@decibel.pvv.ntnu.no> (raw)
In-Reply-To: <v9fy3uraxo.fsf@marauder.physik.uni-ulm.de>

On 2007-07-11, Reiner Steib wrote:

> 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'.
> `----

Ah, I didn't know that comment-region was this clever. However, this
produces citations with "> > " in front of them. To have ">> "
instead, I set

(add-hook 'message-mode-hook
	  (lambda ()
	    (setq comment-start ">")))

in ~/.gnus

Does that seem to be an OK solution?

Regards,
-- 
Svend Tollak Munkejord 

  reply	other threads:[~2007-07-12  7:05 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
2007-07-12  7:05     ` Svend Tollak Munkejord [this message]
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=hddtzsa5cff.fsf@decibel.pvv.ntnu.no \
    --to=stm-direct_reply@pvv.org \
    --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).