[Pkg-mc-devel] Bug#474484: mcedit - fix regex replace

Michal Pokrywka mpokrywka at hoga.pl
Sun Apr 6 00:44:44 UTC 2008


Package: mc
Version: 4.6.2~pre1-7
Severity: wishlist

Hi,
I finally grew tired of mcedit's replace "features" and decided to fix it.
I attach patch (put it in debian/patches/ dir) that implements:
 1. regexp parenthesized subpatterns now can be referenced in replace string
    (using \1 \2 etc, "replacement argument order" is not used with regexp)
 2. replace prompt now shows replacement string with subpattern references
     filled with matched strings - this works both for regexp replace
     and for scanf replace (personally I think scanf matching should be
     completely ripped off)
Please apply this patch so I won't have to patch my favorite editor :-)

Regards
Michal Pokrywka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 99_regexp-replace-fixed.patch
Type: application/octet-stream
Size: 8050 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mc-devel/attachments/20080406/3e88d0db/attachment.obj 


More information about the Pkg-mc-devel mailing list