Function: dired-grep-read-files

dired-grep-read-files is a byte-compiled function defined in dired.el.gz.

Signature

(dired-grep-read-files)

Documentation

Use file at point as the file for grep's default file-name pattern suggestion.

If a directory or nothing is found at point, return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-grep-read-files ()
  "Use file at point as the file for grep's default file-name pattern suggestion.
If a directory or nothing is found at point, return nil."
  (let ((file-name (dired-file-name-at-point)))
    (if (and file-name
	     (not (file-directory-p file-name)))
	file-name)))