[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] Re: Subexpression replacement.
From: |
Chris Allegretta |
Subject: |
[Nano-devel] Re: Subexpression replacement. |
Date: |
Sat, 25 Jan 2003 20:47:36 -0800 |
User-agent: |
Mutt/1.2.5.1i |
On Sat, Jan 25, 2003 at 11:06:25PM -0500, David Benbennick wrote:
> This patch replaces utils.c:strstrwrapper() and fixes
> search.c:replace_regexp() so that subexpression regexp replacement works.
> For example, make a file with the line
>
> lookatthis
>
> and put the cursor at the beginning of the line (a space). Regexp
> search for "(look)(at)(this)", and replace with "\3\2\1". It should
> produce the line
>
> thisatlook
>
> Instead you get
>
> tthika loo
Credited and committed. Thank you for this patch, for all of them
actually, this one looks like a particularly nasty bug to nail down.
Chris A
--
Chris Allegretta http://www.asty.org
"Share and Enjoy" - Douglas Adams, 1952 - 2001
- [Nano-devel] Page Up/Down, Gus Tabares, 2003/01/24
- [Nano-devel] Mem leaks when toggling M-x., David Benbennick, 2003/01/26
- [Nano-devel] Re: Mem leaks when toggling M-x., Chris Allegretta, 2003/01/25
- [Nano-devel] Search-and-replace bugs., David Benbennick, 2003/01/26
- [Nano-devel] Re: Search-and-replace bugs., Chris Allegretta, 2003/01/25
- [Nano-devel] edit_refresh() bug., David Benbennick, 2003/01/26
- Re: [Nano-devel] edit_refresh() bug., Chris Allegretta, 2003/01/26
- [Nano-devel] Updating the mark when spell checking., David Benbennick, 2003/01/26
- [Nano-devel] Re: Updating the mark when spell checking., Chris Allegretta, 2003/01/26
- [Nano-devel] Re: Updating the mark when spell checking., Chris Allegretta, 2003/01/26