Hi Michael, Michael Albinus <[email protected]> writes:
> Thierry Volpiatto <[email protected]> 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 _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
