From: Michael Albinus Date: Sun, 18 Nov 2007 10:26:50 +0000 (+0000) Subject: * tramp.texi (Filename completion): Simplify explanation of X-Git-Tag: emacs-pretest-23.0.90~9654 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b048d47875384535b96cebc34953c280653488f5;p=emacs.git * tramp.texi (Filename completion): Simplify explanation of double-slash behaviour. Explain directory contents flushing. --- diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 3485d6ee770..d1f74ca756c 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,8 @@ +2007-11-18 Michael Albinus + + * tramp.texi (Filename completion): Simplify explanation of + double-slash behaviour. Explain directory contents flushing. + 2007-11-16 Jay Belanger * calc.texi (TeX and LaTeX Language Modes): Put in diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 7389955e80a..d1acafefa03 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -2267,27 +2267,49 @@ filename completion on the remote host. This works pretty much like for files on the local host, with the exception that minibuffer killing via a double-slash works only on the filename part, except that filename part starts with @file{//}. +@ifset emacs +A triple-slash stands for the default behaviour. +@end ifset @ifinfo @xref{Minibuffer File, , , @value{emacsdir}}. @end ifinfo +@noindent +Example: + +@example @ifset emacs -As example, @kbd{@trampfn{telnet, , melancholia, /usr/local/bin//etc} -@key{TAB}} would result in -@file{@trampfn{telnet, , melancholia, /etc}}, whereas -@kbd{@trampfn{telnet, , melancholia, //etc} @key{TAB}} reduces the -minibuffer contents to @file{/etc}. A triple-slash stands for the -default behavior, -i.e. @kbd{@trampfn{telnet, , melancholia, /usr/local/bin///etc} -@key{TAB}} expands directly to @file{/etc}. +@kbd{C-x C-f @trampfn{telnet, , melancholia, /usr/local/bin//etc} @key{TAB}} + @print{} @trampfn{telnet, , melancholia, /etc} + +@kbd{C-x C-f @trampfn{telnet, , melancholia, //etc} @key{TAB}} + @print{} /etc + +@kbd{C-x C-f @trampfn{telnet, , melancholia, /usr/local/bin///etc} @key{TAB}} + @print{} /etc @end ifset @ifset xemacs -As example, @kbd{@trampfn{telnet, , melancholia, /usr/local/bin//}} -would result in @file{@trampfn{telnet, , melancholia, /}}, whereas -@kbd{@trampfn{telnet, , melancholia, //}} expands the minibuffer -contents to @file{/}. +@kbd{C-x C-f @trampfn{telnet, , melancholia, /usr/local/bin//}} + @print{} @trampfn{telnet, , melancholia, /} + +@kbd{C-x C-f @trampfn{telnet, , melancholia, //}} + @print{} / @end ifset +@end example + +A remote directory might have changed its contents out of +@value{emacsname} control, for example by creation or deletion of +files by other processes. Therefore, during filename completion the +remote directory contents is reread regularly in order to detect such +changes, which would be invisible otherwise (@pxref{Connection caching}). + +@defopt tramp-completion-reread-directory-timeout +This variable defines the number of seconds since last remote command +before rereading a directory contents. A value of 0 would require an +immediate reread during filename completion, @code{nil} means to use +always cached values for the directory contents. +@end defopt @node Remote processes