This method is called when the user clicks on the ``Replace'' button in the frame.
This does a replace, using the contents of the replace edit to replace the contents of the search edit, but the replacement happens in the edit that get-edit-to-search returns.