[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ange-ftp-get-files is not updating his cache
From: |
Thierry Volpiatto |
Subject: |
Re: ange-ftp-get-files is not updating his cache |
Date: |
Wed, 11 Jul 2012 18:34:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Hi Michael,
Michael Albinus <address@hidden> writes:
> Thierry Volpiatto <address@hidden> writes:
>
>>> I will see, whether I could improve ange-ftp for this. Unfortunately,
>>> there are several places one needs to invalidate the cache.
>> Cool, looking forward for your changes.
>
> I've committed a patch to Emacs' trunk. Finally, it was just one place I
> had to adjust the cache, the copy case. Removing a file shall work
> already w/o cache problems.
>
> Could you, please, test?
Yes it is working, however I think it is also a workaround, what when
the ftp directory is modified from someone with another Emacs or some
external program?
The hash table will not be updated and the command `ange-ftp-reread-dir'
doesn't help because it is broken (It is not aware of user, password
etc...).
I think it is non sense to cache the ls result in a hash-table, of
course it is faster, but the contents of a directory (ftp or not) is meant
to be always changed.
Imagine how unuseful would be an implementation of `directory-files' with
caching result in a hash-table and refering to this table at each
further calls...
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997