Commit 02b404de authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/progmodes/grep.el (rgrep): Handle the case when `grep-find-command'

is a cons cell.

Fixes: debbugs:9278
parent 35774242
2011-08-17 Juri Linkov <>
* progmodes/grep.el (rgrep): Handle the case when
`grep-find-command' is a cons cell (bug#9278).
2011-08-17 Martin Rudalics <>
* window.el (display-buffer-pop-up-frame): Run frame creation
......@@ -965,7 +965,9 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]."
(unless (and dir (file-directory-p dir) (file-readable-p dir))
(setq dir default-directory))
(if (null files)
(if (not (string= regexp grep-find-command))
(if (not (string= regexp (if (consp grep-find-command)
(car grep-find-command)
(compilation-start regexp 'grep-mode))
(setq dir (file-name-as-directory (expand-file-name dir)))
(require 'find-dired) ; for `find-name-arg'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment