Bindings for query-replace and query-replace-regexp are active at search prompt and use the current search terms.