From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: error in replace-match: "args out of range" Date: Mon, 28 Mar 2011 16:32:37 -0400 Message-ID: References: <4D90D85C.5060805@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301358723 7422 80.91.229.12 (29 Mar 2011 00:32:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 00:32:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gebser@mousecar.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 02:31:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4Mqi-0000e7-9V for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 02:31:56 +0200 Original-Received: from localhost ([127.0.0.1]:37549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4Mqh-0004ax-Ok for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Mar 2011 20:31:55 -0400 Original-Received: from [140.186.70.92] (port=58252 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4Mq4-0004ah-64 for help-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:31:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4Mq2-0004Ot-RP for help-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:31:16 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4Mq2-0004Og-Kz for help-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:31:14 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p2T0VC2L014047; Mon, 28 Mar 2011 20:31:12 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D247866780; Mon, 28 Mar 2011 16:32:37 -0400 (EDT) In-Reply-To: <4D90D85C.5060805@mousecar.com> (ken's message of "Mon, 28 Mar 2011 14:50:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3810=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3810> : streams <614376> : uri <837528> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:80497 Archived-At: > Now I'm trying to understand what you're saying in your last sentence > above. Are you saying that another search invoked by emacs and outside > of my code could alter the values of subexpressions of my last search? I'm just saying that M-: (some-regexp-search) RET M-: (replace-match ...) RET won't always do what you want, because a whole lot of code will run between the two. Stefan