From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.help Subject: Re: replace-match: end of the replacement text for strings Date: 16 Sep 2002 22:09:02 +0200 Organization: FAU Erlangen-Nuernberg Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <5lwupmoxry.fsf@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=latin-iso8859-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1032207959 5607 127.0.0.1 (16 Sep 2002 20:25:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 20:25:59 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17r2RR-0001SJ-00 for ; Mon, 16 Sep 2002 22:25:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17r2Rj-0006E3-00; Mon, 16 Sep 2002 16:26:15 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!news.uni-erlangen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: tfkp07.physik.uni-erlangen.de Original-X-Trace: rznews2.rrze.uni-erlangen.de 1032206976 26133 131.188.164.207 (16 Sep 2002 20:09:36 GMT) Original-X-Complaints-To: news@uni-erlangen.de Original-NNTP-Posting-Date: 16 Sep 2002 20:09:36 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: nntp.stanford.edu gnu.emacs.help:104958 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1513 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1513 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > You need to do some arithmetic to find out the value you want. > > length of replaced text = new length of string > - old length of string > + length of text to be replaced got you. Thanks a lot, Roland