[Top][All Lists]

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

Re: tramp 2.1.11 completion list force refresh

From: Michael Albinus
Subject: Re: tramp 2.1.11 completion list force refresh
Date: Fri, 16 Nov 2007 00:55:12 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Kai Grossjohann <address@hidden> writes:

Hi Kai,

> Checking file-name-all-completions is quite a cool idea.  Just for
> completeness' sake, let me propose an opposite approach: If
> file-name-all-completions is invoked again with the same arguments very
> quickly, then reload the cache.

Something similar was my first try. But it is more complex: if you have
a call of (file-name-all-completions "f" "/"), and the
next call is (file-name-all-completions "foo" "/"), you
should obviously NOT flush the cache for "/bar/". You would need a
book-keeping depending on both parameters, instead of only the directory.

Additionally, two subsequent calls of file-name-all-completions with
both identical parameters do not happen. This is already prevented in
the superior file name completion function (checked with pcomplete.el,
but the other packages might behave similar).

That's why I gave it up this way, and I've offered the other solution.

> Kai

Best regards, Michael.

reply via email to

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