Subject: dired-do-query-replace-regexp should check if files are selected first

From: Dan Jacobson <[email-masked]>
Date: Sat, 05 Oct 2024 11:44:56 +0800

dired-do-query-replace-regexp
asks for the replace from value,
then asks for the replace to value,
and only then finally checks if any files are selected in the first
place.

It needs to check first.

E.g., yes there were files selected, but we just did a first run, and
are no longer looking at the dired buffer. We need to go back to the
dired buffer first. Fine. But at least let the user know before they
bother entering the from and to values.