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" [SOLVED] Date: Sat, 09 Apr 2011 23:25:48 -0300 Organization: A noiseless patient Spider Message-ID: References: <4D90D85C.5060805@mousecar.com> <4D98EE5B.4080108@mousecar.com> <4D9BE07B.2060204@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302403257 9849 80.91.229.12 (10 Apr 2011 02:40:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2011 02:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 10 04:40:54 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 1Q8ka5-0006Bs-CK for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Apr 2011 04:40:53 +0200 Original-Received: from localhost ([127.0.0.1]:46323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8ka3-00024Z-HI for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 22:40:51 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Injection-Info: mx02.eternal-september.org; posting-host="XiIAvY72ZUxKiQYrt+73Dw"; logging-data="11000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Pu9gOHYzXDf8GUovgOYAU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:D9nOJO+k0XnsBtvfmPURv6GNOes= sha1:baD8LmUi0sESW9CS7Mj9tEekjfg= Original-Xref: usenet.stanford.edu gnu.emacs.help:186643 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:80751 Archived-At: >> the problem wasn't a search, but with the read-from-minibuffer function. >> For some reason, invoking that wipes out all the subexpressions. > I don't recall reading about this. If it's not already in the official > documentation, how do we add it in? There are two problems: - you expect the doc to mention the functions that wipe-out the match-data (whereas what really happens is that only a few functions can be assumed to preserve that data and all others should be assumed to wipe it). Hopefully this thread will fix this ;-) - Emacs does not document which functions can be trusted not to wipe the match-data :-( Stefan