help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error in replace-match: "args out of range" [SOLVED]


From: David Combs
Subject: Re: error in replace-match: "args out of range" [SOLVED]
Date: Tue, 24 May 2011 20:01:12 -0000

In article <mailman.14.1302203359.27822.help-gnu-emacs@gnu.org>,
PJ Weisberg  <pj@irregularexpressions.net> wrote:
>M-x report-emacs-bug is probably the best way.  The docstrings for
>match-string and replace-match should emphasize that ANY code that
>deals with strings--notably code that gives control to the user--is
>liable to replace the "last matched" string, so those functions should
>be called right away after you do the match.
>
>On 4/7/11, ken <gebser@mousecar.com> wrote:
>>
>> On 04/05/2011 11:39 PM ken wrote:
>>> ....
>>> 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?

Or maybe a "with-last-matched-string-preserved" or something like it?

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]