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: Sun, 11 Mar 2012 22:50:06 +0100 Message-ID: References: <83ipibxevk.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 1331502645 16933 80.91.229.3 (11 Mar 2012 21:50:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2012 21:50:45 +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 Sun Mar 11 22:50:43 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 1S6qf2-0005ZO-01 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2012 22:50:40 +0100 Original-Received: from localhost ([::1]:46130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6qf0-00031U-WF for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2012 17:50:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6qef-00030q-Ni for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2012 17:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6qed-0004fr-RL for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2012 17:50:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6qed-0004fl-Lj for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2012 17:50:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S6r7S-0005Ga-4o for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2012 18:20: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: Sun, 11 Mar 2012 22:20:02 +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.133150439820231 (code B ref 10990); Sun, 11 Mar 2012 22:20:02 +0000 Original-Received: (at 10990) by debbugs.gnu.org; 11 Mar 2012 22:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:45397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S6r7N-0005GF-U5 for submit@debbugs.gnu.org; Sun, 11 Mar 2012 18:19:58 -0400 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]:62337) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S6r7K-0005G6-Di for 10990@debbugs.gnu.org; Sun, 11 Mar 2012 18:19:56 -0400 Original-Received: by ggmi1 with SMTP id i1so1934747ggm.3 for <10990@debbugs.gnu.org>; Sun, 11 Mar 2012 14:50:06 -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=1ftZlDhKIMgKFDj8ZDBJlavUDkMzEyURjNySjXwbLFg=; b=SSiK+52eeEdA7NwrEgEnpup4Qw2+F5wgZ8KtSzurVFAddFBeVuL7S5K3jd12CNgI2j cNSzCSc5uD2yLuDmocscVKXN35Bib7Gc/J44BFz+2KRDcLxEvlF4jbYeqCY5+VAXPMIp cXS00GCEpSdMqKCJ/LfJgmClKhU/P5Abxy7JCUaMc3EeYQN5uxMXImizjEhAAzy8Qr+6 2MgbSo9Yk/7OoGfUUGD+WueNDU8ZFr0gMpOBz1ZH2/8C9NZUjF9syYOwvJw7ZXtlT16E tLQ7anzl6DFsW18C7SaKa1LF8i16J3LCKiYk+bZuoIn935PX9oa1cJALy4TFqGHrngCm HEhg== Original-Received: by 10.60.5.231 with SMTP id v7mr5998849oev.50.1331502606757; Sun, 11 Mar 2012 14:50:06 -0700 (PDT) Original-Received: by 10.60.42.193 with HTTP; Sun, 11 Mar 2012 14:50:06 -0700 (PDT) In-Reply-To: <83ipibxevk.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:57690 Archived-At: On Sun, Mar 11, 2012 at 17:48, Eli Zaretskii wrote: >> Date: Sun, 11 Mar 2012 09:23:11 +0100 >> From: Dani Moncayo >> >> I am on a MS Windows 7 OS. =A0All the GNU/Unix-like tools that I >> currently have/need come from a MinGW/MSYS installation. >> >> I've tried the "Z" command from a dired buffer (to compress a file). >> The compression goes well, but when I try to uncompress the same file, >> I get the error message: "Searching for program: no such file or >> directory, gunzip". > > Evidently, you don't have gunzip, at least not on PATH. =A0Or maybe it's > MSYS revenge day: perhaps you do have gunzip, but it's a shell script > or some such. =A0Anyway, copying gzip.exe into gunzip.exe should be all > you need. Well, it's obvious that there is no "gunzip" executable visible from my environment. I knew that. And it is also obvious that I don't need it. The 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. >> However: >> * I can visit the compressed file, which implies an implicit >> uncompression. =A0So if Emacs is able to uncompress the file in this >> case, why does it fail in other cases? > > 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? 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. >> * If I open a cmd.exe console and do "gzip -d my_file", the file is >> uncompressed without problems. > > Another evidence to the same effect. An evidence that my system does have a tool for uncompressing files. >> The docstring of the "Z" command says nothing about customizing the >> way of performing the uncompression, and the current way doesn't work >> for me. =A0So I'd like to ask for (a) a better way of finding the >> uncompression utility and (b) a way of customizing the command to >> perform the uncompression. > > I submit that your system is misconfigured ??? I showed clearly that my system is capable of uncompressing files compressed by Emacs. > but of course I won't > object if someone makes a defcustom out of > dired-compress-file-suffixes. --=20 Dani Moncayo