all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: gunzip problem on Windows
Date: Tue, 10 Nov 2009 15:42:52 +0100	[thread overview]
Message-ID: <87my2ubfv7.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.10136.1257448020.2239.help-gnu-emacs@gnu.org

Eli Zaretskii wrote:
>> From: Kevin Rodgers <kevin.d.rodgers-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>>
>>> It might work to copy gzip.exe into gunzip.exe.

Another solution, from the Net (don't know who anymore):

--8<---------------cut here---------------start------------->8---
      (require 'dired-aux)

      (defun dired-call-process (program discard &rest arguments)
        ;; 09Feb02, sailor overwrite this function because Gnu Emacs cannot
        ;; recognize gunzip is a symbolic link to gzip. Thus, if the program
        ;; is "gunzip", replace it with "gzip" and add an option "-d".

        ;; "Run PROGRAM with output to current buffer unless DISCARD is t.
        ;; Remaining arguments are strings passed as command arguments to
        ;; PROGRAM."
        ;; Look for a handler for default-directory in case it is a
        ;; remote file name.
        (let ((handler
               (find-file-name-handler (directory-file-name default-directory)
                                       'dired-call-process)))
          (if handler (apply handler 'dired-call-process
                             program discard arguments)
            (progn
              (if (string-equal program "gunzip")
                  (progn
                    (setq program "gzip")
                    (add-to-list 'arguments "-d")))
              (apply 'call-process program nil (not discard) nil arguments)))))
--8<---------------cut here---------------end--------------->8---

Seb

-- 
Sébastien Vauban


  parent reply	other threads:[~2009-11-10 14:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04 16:32 gunzip problem on Windows Xah Lee
2009-11-04 17:34 ` Andreas Politz
2009-11-04 17:56 ` Eli Zaretskii
2009-11-05 14:26   ` Kevin Rodgers
2009-11-05 19:06     ` Eli Zaretskii
     [not found]     ` <mailman.10136.1257448020.2239.help-gnu-emacs@gnu.org>
2009-11-10 14:42       ` Sébastien Vauban [this message]
2018-05-01  9:55         ` byron.cordova.mora
     [not found]   ` <mailman.10126.1257431414.2239.help-gnu-emacs@gnu.org>
2009-11-05 19:38     ` Xah Lee
2009-11-05 13:22 ` Friedrich Dominicus
2009-11-05 19:37   ` Xah Lee
2009-11-05 19:34 ` Xah Lee
2009-11-05 20:23   ` Xah Lee
2009-11-06  8:28     ` Eli Zaretskii
     [not found] ` <mailman.10068.1257357458.2239.help-gnu-emacs@gnu.org>
2009-11-05 19:35   ` Xah Lee

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=87my2ubfv7.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.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.