From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "gamename" Newsgroups: gmane.emacs.help Subject: Doing numbered changes in a buffer Date: 15 Dec 2005 13:53:42 -0800 Organization: http://groups.google.com Message-ID: <1134683622.782732.293210@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1134685853 28593 80.91.229.2 (15 Dec 2005 22:30:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 22:30:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 23:30:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1En1aN-0007Bh-HE for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 23:28:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1En1b2-00080z-AH for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 17:29:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 128.107.163.92 Original-X-Trace: posting.google.com 1134683627 12120 127.0.0.1 (15 Dec 2005 21:53:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 15 Dec 2005 21:53:47 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=128.107.163.92; posting-account=l5OKnQ0AAADrHOPMVhCpAmIoocOY27KZ Original-Xref: shelby.stanford.edu gnu.emacs.help:136336 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:31975 Archived-At: Hi, I have a tcl file with lots of messages which are about as descriptive as this: puts "something went wrong" ... puts "something went wrong" Is there any way to do a string replace in the buffer such that each instance of "puts" would be assigned a unique message number? For example: puts "001 - something went wrong" ... puts "002 - something went wrong" TIA, -T