Re: Dired 7.5 bug: Grepping gzipped files problem

Andy Norman (ange@hplb.hpl.hp.com)
Fri, 30 Sep 1994 12:09:08 +0100


Adrian writes:

> I did what I should have done in the first place. I have jka-compr
> loaded which means that in the code (I think) :

>     (setq temp-file
> 	  (condition-case err
> 	      (file-local-copy file)
> 	    (error (progn (setq failed (format "%s" err)) nil))))

> when a local copy is made the file is gunzipped while making the local
> copy which means when the zcat command is run it doesn't work. Sorry I
> don't know what to do about this :-(.

I've found that the following patch seems to work, although I've sent a
message to Jay asking him for a better way of temporarily disabling jka-compr.

					-- ange -- <><

					ange@hplb.hpl.hp.com


--- efs-1.12/dired-grep.el~	Mon Sep  5 00:19:03 1994
+++ efs-1.12/dired-grep.el	Fri Sep 30 12:04:55 1994
@@ -7,7 +7,7 @@
 ;; Description:    Support for running grep on marked files in a dired buffer.
 ;; Author:         Sandy Rutherford <sandy@ibm550.sissa.it>
 ;; Created:        Tue Jul 13 22:59:37 1993 by sandy on ibm550
-;; Modified:       Mon Sep  5 00:48:12 1994 by sandy on ibm550
+;; Modified:     Fri Sep 30 12:04:54 1994 (Andy Norman) ange@hplb.hpl.hp.com
 ;;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
@@ -399,7 +399,7 @@
 	      (save-buffer)))))
   (let ((buffer (dired-grep-get-results-buffer))
 	(compressed (string-match dired-grep-compressed-file file))
-	failed temp-file)
+	failed temp-file jka-compr-compression-info-list)
     (setq temp-file
 	  (condition-case err
 	      (file-local-copy file)