[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: Thu, 15 Nov 2007 17:27:56 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

"Thomas S. Chin" <address@hidden> writes:

> I admit that I am not intimately familiar with what options are at
> your disposal, but if it is possible to detect multiple consecutive
> tab keystrokes (e.g. 3), it could then refresh the cache entry for
> that particular directory.  If not, another explicit key binding that
> is consistent with other emacs bindings signifying "refresh" would be
> a second option.  Another option might be to have the cache layer
> refresh on every X accesses, so if a user were to hit tab X times, he
> is guaranteed to have it reload from the remote host.  You can make X
> a configurable parameter and default it to never reload if that is
> your preferred behavior.  A user like me that is willing to sacrifice
> some performance could change this setting to 1 if I always want it to
> reload, or some other number.
> Tell me what you think about these options.

Tramp cannot handle keystrokes, because it is not involved in this. And
it wouldn't be a good idea if Tramp would do its own handling there,
given the number of different packages which provide file name
completion on their own way (f.e. pcomplete.el, ido.el, icicles.el).

Tramp can only do some actions inside file-name-all-completions, which
is called by all these packages. The following patch flushes the
directory cache, if the last file name completion happened more than
10" before. This shall be sufficient, I hope.

Could you, please, test the appended patch whether it is acceptable?

> thom

Best regards, Michael.

Attachment: txtfPNdM_cmdd.txt
Description: Text Data

reply via email to

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