From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: byron.cordova.mora@gmail.com Newsgroups: gmane.emacs.help Subject: Re: gunzip problem on Windows Date: Tue, 1 May 2018 02:55:46 -0700 (PDT) Message-ID: References: <83my32b2cc.fsf@gnu.org> <87my2ubfv7.fsf@mundaneum.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525168702 12427 195.159.176.226 (1 May 2018 09:58:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 May 2018 09:58:22 +0000 (UTC) Injection-Date: Tue, 01 May 2018 09:55:46 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 01 11:58:18 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDS37-00036V-OI for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2018 11:58:17 +0200 Original-Received: from localhost ([::1]:41625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDS5E-00035k-Hf for geh-help-gnu-emacs@m.gmane.org; Tue, 01 May 2018 06:00:28 -0400 X-Received: by 2002:ac8:12c3:: with SMTP id b3-v6mr9500908qtj.56.1525168546888; Tue, 01 May 2018 02:55:46 -0700 (PDT) X-Received: by 2002:a1f:3686:: with SMTP id d128-v6mr1114259vka.7.1525168546684; Tue, 01 May 2018 02:55:46 -0700 (PDT) Original-Path: usenet.stanford.edu!x25-v6no8549023qto.0!news-out.google.com!p41-v6ni821qtp.1!nntp.google.com!x25-v6no8549015qto.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <87my2ubfv7.fsf@mundaneum.com> Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=190.96.98.4; posting-account=enLHfQoAAACN-HY4_xRua_E3r3Cyj9q5 Original-NNTP-Posting-Host: 190.96.98.4 Original-Xref: usenet.stanford.edu gnu.emacs.help:222520 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116639 Archived-At: El martes, 10 de noviembre de 2009, 9:42:52 (UTC-5), S=C3=A9bastien Vauban = escribi=C3=B3: > Eli Zaretskii wrote: > >> From: Kevin Rodgers > >>> > >>> It might work to copy gzip.exe into gunzip.exe. >=20 > Another solution, from the Net (don't know who anymore): >=20 > --8<---------------cut here---------------start------------->8--- > (require 'dired-aux) >=20 > (defun dired-call-process (program discard &rest arguments) > ;; 09Feb02, sailor overwrite this function because Gnu Emacs cann= ot > ;; recognize gunzip is a symbolic link to gzip. Thus, if the prog= ram > ;; is "gunzip", replace it with "gzip" and add an option "-d". >=20 > ;; "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-direc= tory) > '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 argument= s))))) > --8<---------------cut here---------------end--------------->8--- >=20 > Seb >=20 > --=20 > S=C3=A9bastien Vauban #otra forma: #ver donde esta gzip: where gzip #por ejemplo, presentar=C3=ADa: C:\laragon\bin\git\usr\bin\gzip.exe C:\Program Files\Git\usr\bin\gzip.exe #ubicarse, por ejemplo: C:\Program Files\Git\usr\bin #crear archivo: gunzip.bat #contenido del bat:=20 @echo off gzip -d -f %1 # guardar y salir # note: es necesario -f para forzar la descompresion