From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wenbinye@gmail.com Newsgroups: gmane.emacs.help Subject: Re: emacs insert icrement numbers Date: 17 Aug 2006 06:23:04 -0700 Organization: http://groups.google.com Message-ID: <1155820984.054738.26980@h48g2000cwc.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1155822080 26015 80.91.229.2 (17 Aug 2006 13:41:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2006 13:41:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 17 15:41:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDi7F-0004QD-O3 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 15:40:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDi7F-0003ck-2X for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 09:40:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 218.17.227.208 Original-X-Trace: posting.google.com 1155820989 20648 127.0.0.1 (17 Aug 2006 13:23:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 17 Aug 2006 13:23:09 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Opera/9.01 (X11; Linux i686; U; zh-cn),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=218.17.227.208; posting-account=3wOHJA0AAAAYp1ktKqTr4LI0QMFE1g-B Original-Xref: shelby.stanford.edu gnu.emacs.help:141102 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36727 Archived-At: There is a elisp: gse-number-rect which can do this: C-u M-x gse-number-rect Step0ut wrote: > Hi everyone, > > I am using emacs as an editor for c++ and latex. > I am using the command Ctrl-xrt to insert rectangles (usually numbers) quite > often. > My question is: > Is it possible to insert numbers that increament in each line? > e.g. 0 > 1 > 2 > ... > 99 > > Alternatively I was also thinking if it is possible to replace an existing > string (M-x replace-regexp) with an icrement number. It will do the job as > well. > > -- > View this message in context: http://www.nabble.com/emacs-insert-icrement-numbers-tf2120701.html#a5848953 > Sent from the Emacs - Help forum at Nabble.com.