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: Sat, 09 Apr 2011 08:35:38 -0400 Message-ID: <4DA0529A.8020500@mousecar.com> References: <4D90D85C.5060805@mousecar.com> <4D98EE5B.4080108@mousecar.com> <87vcytd5dn.fsf@puma.rapttech.com.au> <87k4f5d4p6.fsf@puma.rapttech.com.au> <4D9FE70A.8010806@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302352585 14971 80.91.229.12 (9 Apr 2011 12:36:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2011 12:36:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 14:36:21 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 1Q8XOm-0005mS-G5 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 14:36:20 +0200 Original-Received: from localhost ([127.0.0.1]:56064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8XOm-00035C-1g for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 08:36:20 -0400 Original-Received: from [140.186.70.92] (port=55131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8XOE-00034r-D4 for help-gnu-emacs@gnu.org; Sat, 09 Apr 2011 08:35:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8XOD-0007KR-3F for help-gnu-emacs@gnu.org; Sat, 09 Apr 2011 08:35:46 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:59392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8XOC-0007KM-U2 for help-gnu-emacs@gnu.org; Sat, 09 Apr 2011 08:35:45 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus3) with ESMTP (Nemesis) id 0MOwGd-1QEqdw3hId-006XWL; Sat, 09 Apr 2011 08:35:42 -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:yeZEo7Opwug6XIVmr4H1ToQqzO+hUY0QzCZhB8Fxbmb flNDyL1gTs11QxsxyPWClbdj+AsOGGulr9fVf6H+iCdSfMY8e0 R4bY51I2m6XkmgqrJxyf5ilw5P7vboTy75bkUsyyODJlqnssDK 4LTDrsCqsqyCRFdbEpHJDY1fkf7ZYc7i4OnI+Hm0o/vEx96ium oumVPW5Q2Lq3l2LTDVqqqdU4MQ5zqpLMpa8iT1QoxQ= 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:80736 Archived-At: On 04/09/2011 02:44 AM PJ Weisberg wrote: > On 4/8/11, ken wrote: >> On 04/07/2011 07:25 PM Tim X wrote: >>> This was my point of warning. It is quite possible to have >>> regexps where sub expressions are not found, but the overall regexp >>> succeeds. >> I'm having a hard time with that concept. Is there a small bit of >> example code you could show it with? > > "I am\\( not\\)? a fish." > > -PJ And on what sort of string would that RE match but the subexpression have the value nil (as opposed to the null string "")?