query-replace-regexp behaves weird:
I type
abc<RET>
bcd<RET>
sar<RET>
C-P C-p C-p C-p <I am now above abc>
M-X ESC ESC
<in modeline I have:>
Redo: (query-replace-regexp "^[:space:]*\\(.*\\)" "\\$query .= \"\\1
\";" nil)
n <for first replace>
y <2nd>
y <3rd>
What I get:
$query .= "bc ";
$query .= "de ";
$query .= "r ";
What had happen to "sar" -> "r " ???
I can reproduce this with fresh started XEmacs (21.4.8) with modeline:
Query replace regexp ^[:space:]*\(.*\) with: \$query .= "\1 ";
I have has other weird regexp experience too, but I don't speak regexp, so
I has been thought that those has been my faults.
With this I really think there is something funny going on. Is there? =)
BR, Jani
--
Jani Averbach