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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 03 Mar 2021 08:28:36 +0200

> From: Allen Li <[email-masked]>
> Date: Wed, 3 Mar 2021 03:38:49 +0000
> 
> -(defun find-dired (dir args)
> +(defun find-dired (dir args &optional global-args)
>    "Run `find' and go into Dired mode on a buffer of the output.
>  The command run (after changing into DIR) is essentially
>  
> -    find . \\( ARGS \\) -ls
> +    find . GLOBAL-ARGS \\( ARGS \\) -ls
>  
>  except that the car of the variable `find-ls-option' specifies what to
> -use in place of \"-ls\" as the final argument.
> +use in place of \"-ls\" as the final argument.  GLOBAL-ARGS is empty
> +when called interactively.

This is okay, IMO, but it would be better to allow the user to specify
GLOBAL-ARGS interactively if the user invokes the command with a
prefix argument.