Support backward replace

Emacs 24.4 supports backward replacement.