[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: query-replace-regexp interactive replacement string
From: |
Deniz Dogan |
Subject: |
Re: query-replace-regexp interactive replacement string |
Date: |
Thu, 3 Mar 2011 09:35:23 +0100 |
2011/3/3 Suvayu Ali <fatkasuvayu+linux@gmail.com>:
> On Thu, 3 Mar 2011 09:03:38 +0100
> Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
>
>> 2011/3/2 suvayu ali <fatkasuvayu+linux@gmail.com>:
>> > Hi Emacs users,
>> >
>> > I wanted to replace interactively all numbers in the text of an
>> > org-mode document with the number in words, so I tried:
>> >
>> > `C-M-% [0-9]+ RET \? RET'
>> >
>> > But this gives me an error like this:
>> > ...
>> >
>>
>> Weird, it doesn't work for me either. However, if I use
>> M-x replace-regexp it does work. In "(emacs) Regexp Replace" it also
>> mentions \?.
>>
>
> Thank you for looking into this, I can also confirm that it works for me
> with replace-regexp but not query-replace-regexp.
>
> Could it be a bug?
>
I'm by no means an expert on the subject, I didn't even know about the
"\?" feature, but now we're two people confused by the documentation
vs. the behavior. If it's not a functionality bug, it's a
documentation bug. Please file a report.
Thanks,
Deniz Dogan