GNU bug report logs -
#28615
25.3; rgrep, grep-read-files confusingly completes file names
Previous Next
Reported by: ヌエルモリノ <vianchielfaura <at> gmail.com>
Date: Wed, 27 Sep 2017 07:03:01 UTC
Severity: minor
Found in version 25.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 28615 <at> debbugs.gnu.org (full text, mbox):
grep-read-files wants a filename glob, not a filename/path.
* lisp/progmodes/grep.el (grep-read-files): Clarify docstring.
Use file aliases for completion.
Clarify completing-read prompt.
---
lisp/progmodes/grep.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 01bdb04714..0537c76d30 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -903,7 +903,7 @@ grep-read-regexp
(read-regexp "Search for" 'grep-tag-default 'grep-regexp-history))
(defun grep-read-files (regexp)
- "Read files arg for interactive grep."
+ "Read filename glob arg for interactive grep."
(let* ((bn (or (buffer-file-name)
(replace-regexp-in-string "<[0-9]+>\\'" "" (buffer-name))))
(fn (and bn
@@ -936,10 +936,10 @@ grep-read-files
(car (car grep-files-aliases))))
(files (completing-read
(concat "Search for \"" regexp
- "\" in files"
+ "\" in files matching glob"
(if default (concat " (default " default ")"))
": ")
- 'read-file-name-internal
+ grep-files-aliases
nil nil nil 'grep-files-history
(delete-dups
(delq nil (append (list default default-alias default-extension)
--
2.14.2
This bug report was last modified 7 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.