summaryrefslogtreecommitdiff
path: root/lisp/progmodes/grep.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2009-08-25 10:11:08 +0000
committerMichael Albinus <michael.albinus@gmx.de>2009-08-25 10:11:08 +0000
commit458c8d31e48f4debe605794fce7cb09037889629 (patch)
tree6da16e8a159e14af2f83633efb940805f46a1c47 /lisp/progmodes/grep.el
parent04473f67564fa927acd5c8e13fa5a298c9e6865f (diff)
downloademacs-458c8d31e48f4debe605794fce7cb09037889629.tar.gz
* progmodes/grep.el (grep-probe): Let-bind `process-file-side-effects' with nil.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r--lisp/progmodes/grep.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 30fb40c2620..5c199016c65 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -458,10 +458,11 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
(run-hooks 'grep-setup-hook))
(defun grep-probe (command args &optional func result)
- (equal (condition-case nil
- (apply (or func 'process-file) command args)
- (error nil))
- (or result 0)))
+ (let (process-file-side-effects)
+ (equal (condition-case nil
+ (apply (or func 'process-file) command args)
+ (error nil))
+ (or result 0))))
;;;###autoload
(defun grep-compute-defaults ()