comparison lisp/progmodes/grep.el @ 72165:301cc56a3482

(grep-read-files): Use car of grep-files-history or grep-files-aliases as default if nothing else applies.
author Kim F. Storm <storm@cua.dk>
date Fri, 28 Jul 2006 23:20:21 +0000
parents bca9d3121eef
children 691a901b4418
comparison
equal deleted inserted replaced
72164:636d15c88534 72165:301cc56a3482
618 (setq aliases nil) 618 (setq aliases nil)
619 (setq alias nil))) 619 (setq alias nil)))
620 (cdr alias))) 620 (cdr alias)))
621 (and fn 621 (and fn
622 (let ((ext (file-name-extension fn))) 622 (let ((ext (file-name-extension fn)))
623 (and ext (concat "*." ext)))))) 623 (and ext (concat "*." ext))))
624 (car grep-files-history)
625 (car (car grep-files-aliases))))
624 (files (read-string 626 (files (read-string
625 (concat "Search for \"" regexp 627 (concat "Search for \"" regexp
626 "\" in files" 628 "\" in files"
627 (if default (concat " (default " default ")")) 629 (if default (concat " (default " default ")"))
628 ": ") 630 ": ")