aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2015-06-07 01:02:38 +0300
committerJuri Linkov2015-06-07 01:02:38 +0300
commit6fec047e9470731d588e52f516c1c704a7a55411 (patch)
tree996b920eada8de114a076b1b70075d9b0982338c
parent809885c2173d212e54570f1da7e5e8a4f45a9f62 (diff)
downloademacs-6fec047e9470731d588e52f516c1c704a7a55411.tar.gz
emacs-6fec047e9470731d588e52f516c1c704a7a55411.zip
* lisp/progmodes/grep.el (zrgrep): Let-bind grep-highlight-matches
before calling grep-compute-defaults because now it affects the command lines computed in grep-compute-defaults. (Bug#20728)
-rw-r--r--lisp/progmodes/grep.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 68852f7b558..cc6662f3bf3 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -1077,6 +1077,9 @@ file name to `*.gz', and sets `grep-highlight-matches' to `always'."
1077 (grep-find-template nil) 1077 (grep-find-template nil)
1078 (grep-find-command nil) 1078 (grep-find-command nil)
1079 (grep-host-defaults-alist nil) 1079 (grep-host-defaults-alist nil)
1080 ;; Set `grep-highlight-matches' to `always'
1081 ;; since `zgrep' puts filters in the grep output.
1082 (grep-highlight-matches 'always)
1080 ;; Use for `grep-read-files' 1083 ;; Use for `grep-read-files'
1081 (grep-files-aliases '(("all" . "* .*") 1084 (grep-files-aliases '(("all" . "* .*")
1082 ("gz" . "*.gz")))) 1085 ("gz" . "*.gz"))))
@@ -1094,10 +1097,7 @@ file name to `*.gz', and sets `grep-highlight-matches' to `always'."
1094 nil default-directory t)) 1097 nil default-directory t))
1095 (confirm (equal current-prefix-arg '(4)))) 1098 (confirm (equal current-prefix-arg '(4))))
1096 (list regexp files dir confirm grep-find-template))))))) 1099 (list regexp files dir confirm grep-find-template)))))))
1097 ;; Set `grep-highlight-matches' to `always' 1100 (let ((grep-find-template template))
1098 ;; since `zgrep' puts filters in the grep output.
1099 (let ((grep-find-template template)
1100 (grep-highlight-matches 'always))
1101 (rgrep regexp files dir confirm))) 1101 (rgrep regexp files dir confirm)))
1102 1102
1103;;;###autoload 1103;;;###autoload