From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#10990: 24.0.94; Uncompressing files Date: Mon, 12 Mar 2012 08:46:50 +0100 Message-ID: References: <83ipibxevk.fsf@gnu.org> <83boo2xyq8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331538447 28076 80.91.229.3 (12 Mar 2012 07:47:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2012 07:47:27 +0000 (UTC) Cc: 10990@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 08:47:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S6zyX-0001As-41 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 08:47:25 +0100 Original-Received: from localhost ([::1]:35225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6zyW-0007qH-BD for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 03:47:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6zyQ-0007qB-E9 for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 03:47:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6zyL-0003HI-Nz for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 03:47:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6zyL-0003HE-I6 for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 03:47:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S70RC-00066f-0b for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 04:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2012 08:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10990-submit@debbugs.gnu.org id=B10990.133154020323442 (code B ref 10990); Mon, 12 Mar 2012 08:17:01 +0000 Original-Received: (at 10990) by debbugs.gnu.org; 12 Mar 2012 08:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:45983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S70Qt-000663-3E for submit@debbugs.gnu.org; Mon, 12 Mar 2012 04:16:43 -0400 Original-Received: from mail-yw0-f44.google.com ([209.85.213.44]:52376) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S70Qq-00065v-Di for 10990@debbugs.gnu.org; Mon, 12 Mar 2012 04:16:41 -0400 Original-Received: by yhpp34 with SMTP id p34so2181616yhp.3 for <10990@debbugs.gnu.org>; Mon, 12 Mar 2012 00:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=UpqmkZChj+bQARkUU12c2a8+TRCdbrItGRBshlN00FY=; b=S6D+Z9h+XBqWXbJuoCKkH4U+IbcbymW4TNXpTqdxTdzdccdMG16uOHRWFKvrMo6zqX 0YR1acMYSAHCW0wT+c7osgLwf/2ehiErZx2a8xFjJluKW1HC1g9ct3CrzorrVT4DIrhc RhKTDsQ3iPtceqIybMHuLvH2tfFP7uDTWUk+SKEoyZ3LuzhyofO2oArWCeIA+WqzCIfV MaTydj3/bXoyDf6sETkSzhdoOyk7+guwURWlnluGWXhW0x+hT8PWt59zXGI50Bj+RGzj yV1WBNXtlez/NnR3rMR+IfXO102BhwR6FGXdVHUisVe2hS8eCWhB9TPa6eiR4263ni3B m9ZA== Original-Received: by 10.182.192.36 with SMTP id hd4mr6481058obc.60.1331538410362; Mon, 12 Mar 2012 00:46:50 -0700 (PDT) Original-Received: by 10.60.42.193 with HTTP; Mon, 12 Mar 2012 00:46:50 -0700 (PDT) In-Reply-To: <83boo2xyq8.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57701 Archived-At: >> Well, it's obvious that there is no "gunzip" executable visible from >> my environment. =A0I knew that. =A0And it is also obvious that I don't >> need it. =A0The problem is not that my system is lacking an >> uncompression program (I have "gzip -d"), the problem is that Emacs >> (a) doesn't know how to invoke it, and (b) doesn't let me tell it how. > > gzip and gunzip are parts of the same package. =A0It is reasonable to > assume that having one means you also have the other. In the standard MinGW/MSYS distribution, "gzip" program is designed to do both things. In fact "gzip -h" shows: C:\emacs>gzip -h Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). [...] So, in this case, "gunzip" is unnecessary. BTW, I tried to copy "gzip.exe" as "gunzip.exe" as you suggested, but it doesn't work, because Emacs invokes "gunzip" without "-d" (obviously), so it doesn't work. A workaround that does work (I've just tested it) is to create a file "gunzip.bat" with a single line "gzip -d %1 %2 %3 %4", and store it in the same folder as "gzip.exe". > But it sounds like you don't actually want to solve your problem, but > rather make some point about big bad Emacs. =A0Whatever. No. Evidently I want to solve my problem. What happens it that, IMHO, the right solution in this case would be to modify Emacs so that the command for uncompression would be configurable, because in this case, the default configuration is not the right one. >> > Visiting compressed files uses "gzip -d", so it doesn't need gunzip. >> > See lisp/jka-cmpr-hook.el. >> >> Then, why doesn't Emacs use that same method whenever it needs to >> uncompress a file? > > Because dired uses a different code which was written by a different > person, I guess. =A0That code needs a program name, not a shell command, > so "gzip -d" will not do. > >> If Emacs was consistent in this regard and used "gzip -d" whenever it >> need to uncompress a file, I would not have had any problem. > > I don't see why there should be a consistency in this case. Neither I don't see why Emacs use different methods to perform the same operation (uncompress a file). >> > I submit that your system is misconfigured >> >> ??? >> I showed clearly that my system is capable of uncompressing files >> compressed by Emacs. > > You have only half of a package installed. No. I have installed the standard MinGW/MSYS distribution, which has support for uncompressing files. --=20 Dani Moncayo