* lisp/progmodes/grep.el (grep-read-files): Cease returning
some completion candidates unconditionally. Use
'completion-file-name-table' over 'read-file-name-internal'
because the latter uses 'completion-table-with-quoting', and
that doesn't blend well with other tables in
'completion-table-merge'.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01194.html
(files (completing-read
(format-prompt "Search for \"%s\" in files matching wildcard"
default regexp)
- (completion-table-merge
- (lambda (_string _pred _action) defaults)
- #'read-file-name-internal)
+ (completion-table-merge defaults #'completion-file-name-table)
nil nil nil 'grep-files-history defaults)))
(and files
(or (cdr (assoc files grep-files-aliases))