roland@ai.mit.edu (Roland McGrath) (07/31/89)
I discovered this bug using query-replace-regexp, but it is undoubtedly in the low-level regexp code. If the replacement for a \n is empty, for example, with: (query-replace-regexp "\\(foo\)?" "\\1 bar" nil t) Then the \1 becomes 1, instead of nothing.