diff options
| author | Dmitry Gutov | 2015-06-28 04:38:11 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-06-28 04:38:11 +0300 |
| commit | bbf63ee00a3c263e3190320bc389bf0b72a5a9d5 (patch) | |
| tree | 3bba555736ac373d5c5a628b139b8f0d838195d1 | |
| parent | a1dde6b50fb8601b2a3ac333cc43569622a18500 (diff) | |
| download | emacs-bbf63ee00a3c263e3190320bc389bf0b72a5a9d5.tar.gz emacs-bbf63ee00a3c263e3190320bc389bf0b72a5a9d5.zip | |
Bind grep-highlight-matches around the rgrep call
* lisp/progmodes/grep.el (zrgrep): Bind grep-highlight-matches
around the rgrep call (bug#20728).
| -rw-r--r-- | lisp/progmodes/grep.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 639d8d93652..3240ee8a0db 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -1089,9 +1089,6 @@ file name to `*.gz', and sets `grep-highlight-matches' to `always'." | |||
| 1089 | (grep-find-template nil) | 1089 | (grep-find-template nil) |
| 1090 | (grep-find-command nil) | 1090 | (grep-find-command nil) |
| 1091 | (grep-host-defaults-alist nil) | 1091 | (grep-host-defaults-alist nil) |
| 1092 | ;; Set `grep-highlight-matches' to `always' | ||
| 1093 | ;; since `zgrep' puts filters in the grep output. | ||
| 1094 | (grep-highlight-matches 'always) | ||
| 1095 | ;; Use for `grep-read-files' | 1092 | ;; Use for `grep-read-files' |
| 1096 | (grep-files-aliases '(("all" . "* .*") | 1093 | (grep-files-aliases '(("all" . "* .*") |
| 1097 | ("gz" . "*.gz")))) | 1094 | ("gz" . "*.gz")))) |
| @@ -1109,7 +1106,10 @@ file name to `*.gz', and sets `grep-highlight-matches' to `always'." | |||
| 1109 | nil default-directory t)) | 1106 | nil default-directory t)) |
| 1110 | (confirm (equal current-prefix-arg '(4)))) | 1107 | (confirm (equal current-prefix-arg '(4)))) |
| 1111 | (list regexp files dir confirm grep-find-template))))))) | 1108 | (list regexp files dir confirm grep-find-template))))))) |
| 1112 | (let ((grep-find-template template)) | 1109 | (let ((grep-find-template template) |
| 1110 | ;; Set `grep-highlight-matches' to `always' | ||
| 1111 | ;; since `zgrep' puts filters in the grep output. | ||
| 1112 | (grep-highlight-matches 'always)) | ||
| 1113 | (rgrep regexp files dir confirm))) | 1113 | (rgrep regexp files dir confirm))) |
| 1114 | 1114 | ||
| 1115 | ;;;###autoload | 1115 | ;;;###autoload |