Allow specifying a wildcard argument to list-directory again
* lisp/files.el (list-directory): Allow specifying a wildcard argument interactively again (bug#55877).
This commit is contained in:
parent
49e06183f5
commit
7ee736a884
1 changed files with 2 additions and 3 deletions
|
@ -7386,12 +7386,11 @@ and `list-directory-verbose-switches'."
|
|||
(list (read-file-name
|
||||
(if pfx "List directory (verbose): "
|
||||
"List directory (brief): ")
|
||||
nil default-directory t
|
||||
nil
|
||||
nil default-directory
|
||||
(lambda (file)
|
||||
(or (file-directory-p file)
|
||||
(insert-directory-wildcard-in-dir-p
|
||||
(expand-file-name file)))))
|
||||
(file-name-as-directory (expand-file-name file))))))
|
||||
pfx)))
|
||||
(let ((switches (if verbose list-directory-verbose-switches
|
||||
list-directory-brief-switches))
|
||||
|
|
Loading…
Add table
Reference in a new issue