all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10990@debbugs.gnu.org
Subject: bug#10990: 24.0.94; Uncompressing files
Date: Mon, 12 Mar 2012 08:46:50 +0100	[thread overview]
Message-ID: <CAH8Pv0j3cBxS1KNBviTr-7A75BzfKjDP0yKybQqAJ=MXv+H27Q@mail.gmail.com> (raw)
In-Reply-To: <83boo2xyq8.fsf@gnu.org>

>> 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.
>
> gzip and gunzip are parts of the same package.  It 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.  Whatever.

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.  That 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.

-- 
Dani Moncayo





  reply	other threads:[~2012-03-12  7:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11  8:23 bug#10990: 24.0.94; Uncompressing files Dani Moncayo
2012-03-11 16:48 ` Eli Zaretskii
2012-03-11 21:50   ` Dani Moncayo
2012-03-12  3:52     ` Eli Zaretskii
2012-03-12  7:46       ` Dani Moncayo [this message]
2012-03-12 17:28         ` Juanma Barranquero
2012-03-12 17:29         ` Eli Zaretskii
2012-03-12 19:12           ` Dani Moncayo
2012-03-12 20:12             ` Stefan Monnier
2012-03-12 20:58             ` Eli Zaretskii
2012-03-12 17:58         ` Achim Gratz
2012-03-12 20:47           ` Achim Gratz
2012-03-12 20:59           ` Eli Zaretskii
2012-03-12 21:50             ` Achim Gratz
2021-08-31 16:20 ` Marco Centurion
2021-09-01  7:37   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH8Pv0j3cBxS1KNBviTr-7A75BzfKjDP0yKybQqAJ=MXv+H27Q@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=10990@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.