(let ((inhibit-read-only t))
(grep-mode)
(erase-buffer)
- (insert (format "; Searching for '%s' ...\n" regexp))))
+ (insert (format "; Searching for '%s' ...\n" regexp))
+ (pop-to-buffer result-buffer)))
result-buffer))
(defun egrep-finalize-result-buffer (result-buffer)
- (pop-to-buffer result-buffer)
(goto-char (point-min)))
(defun egrep-regexps (regexp &optional predicate &rest args)
(sit-for .1)
(if prepare (funcall prepare))
(egrep-regexps-1 result-buffer regexp predicate args))))
- (egrep-finalize-result-buffer result-buffer)))
+ (egrep-finalize-result-buffer result-buffer)
+ (message "Search complete.")))
(defun egrep-string-startswith (string start)
(and (> (length string) (length start))