bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46884: [PATCH] 27.1; Cannot run find-dired with -maxdepth


From: Allen Li
Subject: bug#46884: [PATCH] 27.1; Cannot run find-dired with -maxdepth
Date: Thu, 04 Mar 2021 19:21:39 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:
> Shouldn't it be compatible with 'rgrep', so 'C-u M-x find-dired' will read
> the whole constructed command line where the user can add more args,
> and 'C-u C-u M-x find-dired' will rerun the same command in another directory.

The way rgrep works right now is very different from how find-dired
works right now:

(rgrep REGEXP &optional FILES DIR CONFIRM)

"When called programmatically and FILES is nil, REGEXP is expected
to specify a command to run."

For comparison:

(find-dired DIR ARGS)

I guess we could make ARGS optional and overload DIR to take a command?
What do you think, Eli?

The new signature would look like:

(find-dired DIR &optional ARGS CONFIRM)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]