Reputation: 433
I'm following a tutorial on searching and finding in emacs. (I'm running it on windows.)
The guy types:
Find-dired
while in Mini-Buffer. As a consequence the Mini-Buffer prompts:
Run find in directory
.
Thus far I get the same result.
But then he types something to get the Mini-Buffer prompt
Run find (with args)
and I don't know what he typed to get this result.
Does anybody know how to get Run find (with args)
after typing Find-dired
?
Thanks
Upvotes: 1
Views: 92
Reputation: 30701
Uh, that's just what find-dired
does. First it prompts you for a directory, and then it prompts you for the find
command arguments:
(interactive (list (read-directory-name "Run find in directory: " nil "" t)
(read-string "Run find (with args): " find-args '(find-args-history . 1))))
C-h f find-dired
tells you what the command does and what its arguments are. It tells you that there are two arguments: a directory and the arguments to pass to command find
.
find-dired is an interactive autoloaded compiled Lisp function in
‘find-dired.el’.
(find-dired DIR 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
except that the car of the variable ‘find-ls-option’ specifies what to
use in place of "-ls" as the final argument.
Upvotes: 1