]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/progmodes/grep.el (grep-read-files): Fix completion table
authorEshel Yaron <me@eshelyaron.com>
Mon, 1 Jul 2024 15:35:51 +0000 (17:35 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 1 Jul 2024 15:35:51 +0000 (17:35 +0200)
lisp/progmodes/grep.el

index 7c8a3124da42a0901be592720458b9122fc1a4ae..7ac195017410561946dfcd0b5fecafb4df591331 100644 (file)
@@ -1179,9 +1179,7 @@ REGEXP is used as a string in the prompt."
          (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))