all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* uncompress-on-load uses 'uncompress' needs to use 'gunzip'
@ 2009-08-07 17:23 Edward Hyer
  2009-08-07 22:21 ` Xah Lee
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Edward Hyer @ 2009-08-07 17:23 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
  2009-08-07 17:23 uncompress-on-load uses 'uncompress' needs to use 'gunzip' Edward Hyer
@ 2009-08-07 22:21 ` Xah Lee
  2009-08-08 11:55   ` Bruno Barbier
  2009-08-09 13:08   ` Benjamin Riefenstahl
  2009-08-07 22:22 ` Xah Lee
  2009-08-07 23:57 ` A.Politz
  2 siblings, 2 replies; 6+ messages in thread
From: Xah Lee @ 2009-08-07 22:21 UTC (permalink / raw)
  To: help-gnu-emacs

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?

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
  2009-08-07 17:23 uncompress-on-load uses 'uncompress' needs to use 'gunzip' Edward Hyer
  2009-08-07 22:21 ` Xah Lee
@ 2009-08-07 22:22 ` Xah Lee
  2009-08-07 23:57 ` A.Politz
  2 siblings, 0 replies; 6+ messages in thread
From: Xah Lee @ 2009-08-07 22:22 UTC (permalink / raw)
  To: help-gnu-emacs

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?

Oh, as another solution, just create a alias of uncompress to gunzip,
that should work am pretty sure.

 Xah


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
  2009-08-07 17:23 uncompress-on-load uses 'uncompress' needs to use 'gunzip' Edward Hyer
  2009-08-07 22:21 ` Xah Lee
  2009-08-07 22:22 ` Xah Lee
@ 2009-08-07 23:57 ` A.Politz
  2 siblings, 0 replies; 6+ messages in thread
From: A.Politz @ 2009-08-07 23:57 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 7, 7:23 pm, 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?

The thing is called `jka-compr-compression-info-list'. You probably
want to merge the gzip into the compress entry.

-ap


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
  2009-08-07 22:21 ` Xah Lee
@ 2009-08-08 11:55   ` Bruno Barbier
  2009-08-09 13:08   ` Benjamin Riefenstahl
  1 sibling, 0 replies; 6+ messages in thread
From: Bruno Barbier @ 2009-08-08 11:55 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uncompress-on-load uses 'uncompress' needs to use 'gunzip'
  2009-08-07 22:21 ` Xah Lee
  2009-08-08 11:55   ` Bruno Barbier
@ 2009-08-09 13:08   ` Benjamin Riefenstahl
  1 sibling, 0 replies; 6+ messages in thread
From: Benjamin Riefenstahl @ 2009-08-09 13:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Edward,

> 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?

M-x apropos-value RET uncompress RET tells me that
jka-compr-compression-info-list is responsible for that.  I tried
customizing that variable (the section which mentions "Z" and
"compress"), and that works here for uncompressing.

It seems though that gzip can not be told to create files so that they
are compatible with uncompress [*].  So changing files and re-saving is
not going to work, or at least it will not be compatible.

[*] No surprise here, IIRC the problem that lead to the development of
gzip at the time was tied to the compression algorithm used by compress.

benny


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-09 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-07 17:23 uncompress-on-load uses 'uncompress' needs to use 'gunzip' Edward Hyer
2009-08-07 22:21 ` Xah Lee
2009-08-08 11:55   ` Bruno Barbier
2009-08-09 13:08   ` Benjamin Riefenstahl
2009-08-07 22:22 ` Xah Lee
2009-08-07 23:57 ` A.Politz

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.