David Reitter <[EMAIL PROTECTED]> writes:

> On 17 Oct 2005, at 15:46, Stefan Monnier wrote:
>>
>> Agreed.  Except that let-binding auto-compression-mode doesn't do much
>> if anything.  Better just check whether auto-compression-mode is
>> nil and if
>> so don't try to load the .gz file.
>
> Seems like I got confused by instructions from jka-compr.el:
>
> ;; To use jka-compr, invoke the command `auto-compression-mode' (which
> ;; see), or customize the variable of the same name.  Its operation
> ;; should be transparent to the user (except for messages appearing when
> ;; a file is being compressed or uncompressed).
>
> The DOC strings are much clearer regarding this issue.
>
> Shouldn't we better enable auto-compression-mode temporarily if it is
> switched off?

Maybe buffer-local is somehow workable?  This would have the added
advantage that if the user managed to edit and save the buffer, it
would get recompressed even if global auto-compression-mode was off.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to