emacs-devel
[Top][All Lists]
Advanced

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

Re: Tramp and auto-compression-mode and load order


From: Stefan Monnier
Subject: Re: Tramp and auto-compression-mode and load order
Date: Wed, 21 Nov 2001 10:49:33 -0500

> "Stefan Monnier" <monnier+gnu/address@hidden> writes:
> 
> >> It works to load Tramp first, then turn on auto-compression-mode
> >> later.  But it does not work to turn on auto-compression-mode first,
> >> then load Tramp.
> >
> > Last time this came up I suggested to choose entries based on where
> > they match.  F.ex. jka-compr matches the end of the file name,
> > so it should have precedence over ange-ftp and tramp.
> 
> I have tried your patch, and it works well for jka-compr and Tramp.
> Yay!
> 
> To correctly implement Tramp, I need a way to test Emacs for this
> patch:
> 
> (unless (emacs-has-stefans-patch)
>   (when (and (boundp 'auto-compression-mode)
>              (symbol-value 'auto-compression-mode))
>     (error "Must load Tramp before enabling `auto-compression-mode'")))
> 
> But how to implement emacs-has-stefans-patch?

Right now, it's very easy:

        (defun emacs-has-stefans-patch () nil)

but if the patch is accepted, we can write a better one.
For example by setting file-name-handler-alist to a well-chosen
value and trying out find-file-name-handler with it.


        Stefan




reply via email to

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