because `zgrep' returns 1 for successful matches.
Fixes: debbugs:9226
+2011-09-18 Juri Linkov <juri@jurta.org>
+
+ * progmodes/grep.el (grep-process-setup): Don't check code for 1
+ because `zgrep' returns 1 for successful matches (bug#9226).
+
2011-09-18 Juri Linkov <juri@jurta.org>
* info.el (Info-extract-menu-node-name): Check the second match
;; so the buffer is still unmodified if there is no output.
(cond ((and (zerop code) (buffer-modified-p))
'("finished (matches found)\n" . "matched"))
- ((or (= code 1) (not (buffer-modified-p)))
+ ((not (buffer-modified-p))
'("finished with no matches found\n" . "no match"))
(t
(cons msg code)))