]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-read-files): Use car of grep-files-history or grep-files-aliases
authorKim F. Storm <storm@cua.dk>
Fri, 28 Jul 2006 23:20:21 +0000 (23:20 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 28 Jul 2006 23:20:21 +0000 (23:20 +0000)
as default if nothing else applies.

lisp/progmodes/grep.el

index 96f449c2b05fe351bf0773667c8dab5aaa31f2f4..1c29bfe9cc87e3eff604c1480a7c2baa52b74dab 100644 (file)
@@ -620,7 +620,9 @@ substitution string.  Note dynamic scoping of variables.")
                      (cdr alias)))
               (and fn
                    (let ((ext (file-name-extension fn)))
-                     (and ext (concat "*." ext))))))
+                     (and ext (concat "*." ext))))
+              (car grep-files-history)
+              (car (car grep-files-aliases))))
         (files (read-string
                 (concat "Search for \"" regexp
                         "\" in files"