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: Andreas Schwab
Subject: bug#46884: [PATCH] 27.1; Cannot run find-dired with -maxdepth
Date: Sat, 13 Mar 2021 10:58:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux)

On Mär 13 2021, Eli Zaretskii wrote:

>> +---
>> +*** Optional 'global-args' parameter added to 'find-dired'.
>> +This allows passing find global options like -maxdepth.
>
> "find" should be in quotes: 'find'
>
>> @@ -202,6 +203,7 @@ find-dired
>>      (setq default-directory dir
>>        find-args args              ; save for next interactive call
>>        args (concat find-program " . "
>> +                       (if global-args global-args "")
>
> 'concat' knows how to handle nil arguments, so you don't need the
> empty string alternative here.  Just (if global-args global-args)
> should do.

aka (or global-args) aka global-args

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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