]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve doc string and prompt of 'grep-read-files'
authorEli Zaretskii <eliz@gnu.org>
Mon, 9 Oct 2017 13:39:25 +0000 (16:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 9 Oct 2017 13:39:25 +0000 (16:39 +0300)
* lisp/progmodes/grep.el (grep-read-files): Clarify in the doc
string and in the prompt that shell wildcards can be used.
Suggested by Allen Li <vianchielfaura@gmail.com>.  (Bug#28615)

lisp/progmodes/grep.el

index 01bdb04714f60b3516ca481d1231872162ed037a..d0404fdeaf4298b09e7bbafa57cc7d20a220242f 100644 (file)
@@ -903,7 +903,8 @@ substitution string.  Note dynamic scoping of variables.")
   (read-regexp "Search for" 'grep-tag-default 'grep-regexp-history))
 
 (defun grep-read-files (regexp)
-  "Read files arg for interactive grep."
+  "Read a file-name pattern arg for interactive grep.
+The pattern can include shell wildcards."
   (let* ((bn (or (buffer-file-name)
                 (replace-regexp-in-string "<[0-9]+>\\'" "" (buffer-name))))
         (fn (and bn
@@ -936,7 +937,7 @@ substitution string.  Note dynamic scoping of variables.")
               (car (car grep-files-aliases))))
         (files (completing-read
                 (concat "Search for \"" regexp
-                        "\" in files"
+                        "\" in files matching wildcard"
                         (if default (concat " (default " default ")"))
                         ": ")
                 'read-file-name-internal