From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: A variant of match-end, but after replacement? Date: Mon, 20 Jul 2015 12:46:22 +0200 Message-ID: <87pp3nrts1.fsf@members.fsf.org> References: <87h9p04ain.fsf@kuiper.lan.informatimago.com> <87k2twjq0r.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437389212 8599 80.91.229.3 (20 Jul 2015 10:46:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 10:46:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 20 12:46:43 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 1ZH8ao-0007bY-HG for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 12:46:42 +0200 Original-Received: from localhost ([::1]:54577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH8ao-0005ok-3k for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 06:46:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH8aa-0005of-MI for help-gnu-emacs@gnu.org; Mon, 20 Jul 2015 06:46:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH8aW-0001OR-K8 for help-gnu-emacs@gnu.org; Mon, 20 Jul 2015 06:46:28 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:39501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH8aW-0001OF-Ek for help-gnu-emacs@gnu.org; Mon, 20 Jul 2015 06:46:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArIHAFzQrFWkD4Xx/2dsb2JhbABcgkGCD4JVpjcBAQEBBppJAoFyAQEBAQEBgQuEJAEBBHkQCAMOEyUPAQRJE4guxSsBCwEfhh6FLoUGB4QrAQSUUpRdkEsmg348MYJLAQEB Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 20 Jul 2015 12:46:22 +0200 In-Reply-To: <87k2twjq0r.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 19 Jul 2015 14:22:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:105867 Archived-At: Marcin Borkowski writes: > Nope - I'm doing search and replacement in a string, not in a buffer... you could do: (with-temp-buffer (insert string) do-magic-here (buffer-string)) -- Nico.