From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: A variant of match-end, but after replacement? Date: Sun, 19 Jul 2015 16:26:00 +0300 Message-ID: <55ABA568.3040307@yandex.ru> References: <87h9p04ain.fsf@kuiper.lan.informatimago.com> <87d1zo49e6.fsf@kuiper.lan.informatimago.com> <87h9p0jnd8.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1437312384 5392 80.91.229.3 (19 Jul 2015 13:26:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2015 13:26:24 +0000 (UTC) To: Marcin Borkowski , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 19 15:26:19 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZGobj-0004l8-4l for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Jul 2015 15:26:19 +0200 Original-Received: from localhost ([::1]:51574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGobi-0000wQ-Gh for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Jul 2015 09:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGobY-0000wJ-5V for help-gnu-emacs@gnu.org; Sun, 19 Jul 2015 09:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGobV-0005xC-0v for help-gnu-emacs@gnu.org; Sun, 19 Jul 2015 09:26:08 -0400 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:35989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGobU-0005x4-Pq for help-gnu-emacs@gnu.org; Sun, 19 Jul 2015 09:26:04 -0400 Original-Received: by wgbcc4 with SMTP id cc4so19516568wgb.3 for ; Sun, 19 Jul 2015 06:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=5lDfW3iWkvCsdp0T1+UAQK3E8Z+uMSlm0UTk4UhjDfk=; b=mKr6CMFmajxWRWiXO1inFgl24lvyjDEy9pcO2SDLwF34xTc9h+3xOF6XInMMYP71zR jBk2GVCirxKP1gLLHrhfvbUylHF6Zr1D0rbDgck/LFbqtn2Al+jWRapePPsEEMCdh47d jx94vqZ8+ghf4bsxtt0oP+deRB9bSWBNdaNDE8BkOkihZQHQKHsD3BQHT5roMn9mvk+R vaOF3LuJ9hPGsft9b7gFXYXO47Tqj6Jjju4+9dsyapUMY4oWF/oQSzYx0Q+GEZOcgqcy 7HRn7/F4Z5oRH6Eivl5WU7M/2T9ejroGy7lWDeKy7raIHKgF6t2r1eu2t9bm9ADNDtLs YOjg== X-Received: by 10.180.149.206 with SMTP id uc14mr13196821wib.12.1437312364181; Sun, 19 Jul 2015 06:26:04 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id l14sm27179848wjq.21.2015.07.19.06.26.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2015 06:26:03 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <87h9p0jnd8.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105852 Archived-At: On 07/19/2015 04:20 PM, Marcin Borkowski wrote: > Still not there - I can't assume that "newtext" will have the same > length as the thing it replaced... You can do the arithmetics there, or use a marker.