From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9310 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: Alterative to tc-indent-region? Date: Wed, 11 Jul 2007 21:34:59 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184182921 10442 80.91.229.12 (11 Jul 2007 19:42:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 19:42:01 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Jul 11 21:41:58 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I8i4U-0002lj-2G for gegu-info-gnus-english@m.gmane.org; Wed, 11 Jul 2007 21:41:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8i4T-0000d2-DL for gegu-info-gnus-english@m.gmane.org; Wed, 11 Jul 2007 15:41:57 -0400 Original-Newsgroups: gnu.emacs.gnus X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:ch5MtHvEwYnFUCeE9wHX8aCFBPQ= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1184182537 134.60.10.123 (11 Jul 2007 21:35:37 +0200) Original-Lines: 45 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79495 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9310 Archived-At: On Tue, Jul 10 2007, David Z Maze wrote: > Svend Tollak Munkejord 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. ,----[ ` 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/