From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: error in replace-match: "args out of range" Date: Sun, 03 Apr 2011 18:02:03 -0400 Message-ID: <4D98EE5B.4080108@mousecar.com> References: <4D90D85C.5060805@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301868158 11440 80.91.229.12 (3 Apr 2011 22:02:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2011 22:02:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 04 00:02:34 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 1Q6VNS-0005Dm-6d for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Apr 2011 00:02:34 +0200 Original-Received: from localhost ([127.0.0.1]:42474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6VNR-00038M-Hg for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Apr 2011 18:02:33 -0400 Original-Received: from [140.186.70.92] (port=44431 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6VN5-00037z-P7 for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 18:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6VN4-0002Uk-UM for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 18:02:11 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:63009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6VN4-0002UT-QR for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 18:02:10 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0MTSbX-1QYifi2Jfz-00S1LS; Sun, 03 Apr 2011 18:02:08 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:CdnmX57faC+A4ZuwTgxrSSxWDHIPS3Tz65chLOMyUyi tgBEuWoU0+XAhoFn2teYMNTnM7vepKLAgacbzi2Ece/rSsD4Jo wXfI6NDSWXe4XTeX2pJObtfDa8BM+eoNy8bvOuDoQNJ2x970k/ 1C4G0TIIDPYwZXQpDJ3i6F+eI4fomKuZ1Ecvv0SCN8J+2b+MyV 14H6GmPvmyLOqHPGymm/cn18wv3QoDjC/KD4Ir20Og= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 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:80593 Archived-At: On 03/28/2011 04:32 PM Stefan Monnier wrote: >> 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 Hmm. I'm hearing "this is faith-based functionality." Does it have to do with the fact that all processes running from one emacs session have the one and the same PID? I recall reading a discussion on this list (which was largely outside my capacity) multiple years ago about some problem which 'would be resolved when threading is implemented.' Is this an issue of that sort?