diff options
| author | Juri Linkov | 2011-08-17 20:11:49 +0300 |
|---|---|---|
| committer | Juri Linkov | 2011-08-17 20:11:49 +0300 |
| commit | 02b404de99985e6f86fe0f2e0969d281a875313e (patch) | |
| tree | 0b8c5ffd49d0bb9fceb4028eb75c1873c1bdab46 | |
| parent | 35774242f9065a941c7a34acc9089647acf04b43 (diff) | |
| download | emacs-02b404de99985e6f86fe0f2e0969d281a875313e.tar.gz emacs-02b404de99985e6f86fe0f2e0969d281a875313e.zip | |
* lisp/progmodes/grep.el (rgrep): Handle the case when `grep-find-command'
is a cons cell.
Fixes: debbugs:9278
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f3d37a77b24..38a463ddb58 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-17 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * progmodes/grep.el (rgrep): Handle the case when | ||
| 4 | `grep-find-command' is a cons cell (bug#9278). | ||
| 5 | |||
| 1 | 2011-08-17 Martin Rudalics <rudalics@gmx.at> | 6 | 2011-08-17 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (display-buffer-pop-up-frame): Run frame creation | 8 | * window.el (display-buffer-pop-up-frame): Run frame creation |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index db8e82193b3..31100f3fac2 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -965,7 +965,9 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]." | |||
| 965 | (unless (and dir (file-directory-p dir) (file-readable-p dir)) | 965 | (unless (and dir (file-directory-p dir) (file-readable-p dir)) |
| 966 | (setq dir default-directory)) | 966 | (setq dir default-directory)) |
| 967 | (if (null files) | 967 | (if (null files) |
| 968 | (if (not (string= regexp grep-find-command)) | 968 | (if (not (string= regexp (if (consp grep-find-command) |
| 969 | (car grep-find-command) | ||
| 970 | grep-find-command))) | ||
| 969 | (compilation-start regexp 'grep-mode)) | 971 | (compilation-start regexp 'grep-mode)) |
| 970 | (setq dir (file-name-as-directory (expand-file-name dir))) | 972 | (setq dir (file-name-as-directory (expand-file-name dir))) |
| 971 | (require 'find-dired) ; for `find-name-arg' | 973 | (require 'find-dired) ; for `find-name-arg' |