Subject: Re: bug#73635: dired-do-query-replace-regexp should check if files are selected first

From: Visuwesh <[email-masked]>
Date: Sat, 05 Oct 2024 09:52:08 +0530

[சனி அக்டோபர் 05, 2024] Dan Jacobson wrote:

> 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.

It uses the filename under point if there are no marked files like all
dired commands.