emacs-devel
[Top][All Lists]
Advanced

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

Re: Mysterious gzipped images


From: Lars Magne Ingebrigtsen
Subject: Re: Mysterious gzipped images
Date: Thu, 08 Aug 2013 15:28:46 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Romain Francoise <address@hidden> writes:

> Lars Magne Ingebrigtsen <address@hidden> writes:
>
>> DEFUN ("decompress-gzipped-region", Fdecompress_gzipped_region,
>>        Sdecompress_gzipped_region,
>
> Wouldn't it be better to have a single `decompress-region' function to
> which you specify the decompression algorithm? It's almost certain that
> if we add gzip, down the road someone will request bzip2, or xz, or...

Well, yes, that will probably be requested, but would require extra
libraries.  gzip is "free", since it's already built into 99% of Emacs
builds already.  So it smacks of premature overengineering to me.  >"?

> Then you can add a companion `compress-region' function which also takes
> the compression level, etc.

I think we can rely on external programs for compression.  It's not
something that Emacs needs to do efficiently.

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
  and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html



reply via email to

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