Subject: Re: bug#34621: [PATCH] lisp/progmodes/grep.el (grep-read-files): Add file-directory-p check

From: Juri Linkov <[email-masked]>
Date: Sun, 17 Mar 2019 23:28:51 +0200

> More importantly, dired could implement this so that no default
> patterns are suggested for dired buffers.

For Dired, it would make more sense to use a default based on the
filename under point by using dired-get-filename, so for example
when in the Dired buffer in a directory called "django-1.11"
the cursor is on a file called "test.c" then the default could be
*.[ch]