(if grep-find-command
(list (read-shell-command "Run find (like this): "
grep-find-command 'grep-find-history))
- ;; No default was set
- (read-string
- "compile.el: No `grep-find-command' command available. Press RET.")
- (list nil))))
+ (user-error "No `grep-find-command' available"))))
(when command-args
(let ((null-device nil)) ; see grep
(grep command-args))))
((and grep-command (equal current-prefix-arg '(16)))
(list (read-from-minibuffer "Run: " grep-command
nil nil 'grep-history)))
- ((not grep-template)
- (error "grep.el: No `grep-template' available"))
+ ((not grep-template) (user-error "No `grep-template' available"))
(t (let* ((regexp (grep-read-regexp))
(files (grep-read-files regexp))
(dir (read-directory-name "In directory: "