all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: error in replace-match: "args out of range" [SOLVED]
Date: Sun, 24 Apr 2011 01:20:57 +0000 (UTC)	[thread overview]
Message-ID: <iovttp$s8i$2@reader1.panix.com> (raw)
In-Reply-To: mailman.14.1302203359.27822.help-gnu-emacs@gnu.org

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




  parent reply	other threads:[~2011-04-24  1:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3.1301227401.14102.help-gnu-emacs@gnu.org>
2011-03-28 15:38 ` error in replace-match: "args out of range" Stefan Monnier
2011-03-28 18:50   ` ken
2011-03-28 20:32     ` Stefan Monnier
2011-04-03 22:02       ` ken
2011-04-03 23:19         ` PJ Weisberg
2011-04-04 16:13           ` ken
     [not found]           ` <mailman.1.1301933608.12491.help-gnu-emacs@gnu.org>
2011-04-04 22:21             ` Tim X
2011-04-07 16:29               ` ken
     [not found]               ` <mailman.0.1302193756.25199.help-gnu-emacs@gnu.org>
2011-04-07 23:25                 ` Tim X
2011-04-09  4:56                   ` ken
2011-04-09  6:44                     ` PJ Weisberg
2011-04-09 12:35                       ` ken
     [not found]                       ` <mailman.2.1302352549.29796.help-gnu-emacs@gnu.org>
2011-04-09 12:57                         ` David Kastrup
2011-04-09 20:04                           ` PJ Weisberg
2011-04-09 21:25                             ` Perry Smith
2011-04-05  1:56             ` Stefan Monnier
2011-04-06  3:39               ` error in replace-match: "args out of range" [SOLVED] ken
2011-04-07 14:00                 ` ken
2011-04-07 19:09                   ` PJ Weisberg
     [not found]                   ` <mailman.14.1302203359.27822.help-gnu-emacs@gnu.org>
2011-04-24  1:20                     ` David Combs [this message]
2011-04-24  5:21                       ` Stefan Monnier
2011-05-09  1:32                         ` David Combs
     [not found]                 ` <mailman.9.1302184849.3726.help-gnu-emacs@gnu.org>
2011-04-10  2:25                   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='iovttp$s8i$2@reader1.panix.com' \
    --to=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.