help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'


From: Bruno Barbier
Subject: Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
Date: 08 Aug 2009 11:55:52 GMT
User-agent: slrn/0.9.9p1 (Linux)

On 2009-08-07, Xah Lee <xahlee@gmail.com> wrote:
> On Aug 7, 10:23 am, Edward Hyer <ejh...@gmail.com> wrote:
>> For whatever reason (don't get me started), 'uncompress' is deprecated
>> on our new systems. However, we still have loads of .Z files, and when
>> I try to load one in emacs, I get
>>
>> /bin/sh: uncompress: command not found
>>
>> How can I get emacs to use gunzip instead?
>
> do you mean pressing Z in dired on files ending in .Z to get it to
> call gunzip instead?
>
> as far as i know, dired choose program based on the file name ending.
> I haven't looked into, but afaik it's hard to change this suffix/
> program association as judged in posts here in the past year. (i
> myself like to be able to press Z or some other key to use zip/unzip.)
>
> hope someone can help on this.
>
> but in anycase, it is very easy to convert all your .Z files to .gzip.
> Just write a shell program to decompress then compress with gzip, no?
>

Following the documentation of the variable
`dired-compress-file-suffixes' and, if you only want to uncompress .Z
files, you can try to add this to your .emacs:

  (add-to-list 'dired-compress-file-suffixes '("\\.Z\\'" "" "gunzip"))


I hope this works as (not tested it).

Bruno.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]