diff options
| author | Kai Großjohann | 2002-07-13 10:52:22 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2002-07-13 10:52:22 +0000 |
| commit | 83fa16cf01b7951ae50a468034cb3b0d98d03bd2 (patch) | |
| tree | b6e4ed7053b0f1bfc1372746c68821ddbcfbfe54 | |
| parent | aae2ce50f46d5d6ec398674ba99bcc8034f6fe45 (diff) | |
| download | emacs-83fa16cf01b7951ae50a468034cb3b0d98d03bd2.tar.gz emacs-83fa16cf01b7951ae50a468034cb3b0d98d03bd2.zip | |
* files.texi (Remote Files): Explain new unified file name synatx.
* tramp.texi: Remove version variables.
(Inline methods): Clarify which questions `smx' deals with.
(Remote shell setup): shell-prompt-pattern must match at end of
buffer.
| -rw-r--r-- | man/ChangeLog | 9 | ||||
| -rw-r--r-- | man/files.texi | 57 | ||||
| -rw-r--r-- | man/tramp.texi | 34 |
3 files changed, 61 insertions, 39 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index ca084e4e38c..8e6aa9cc464 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2002-07-13 Kai Gro,b_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> | ||
| 2 | |||
| 3 | * files.texi (Remote Files): Explain new unified file name synatx. | ||
| 4 | |||
| 5 | * tramp.texi: Remove version variables. | ||
| 6 | (Inline methods): Clarify which questions `smx' deals with. | ||
| 7 | (Remote shell setup): shell-prompt-pattern must match at end of | ||
| 8 | buffer. | ||
| 9 | |||
| 1 | 2002-06-17 David Kastrup <David.Kastrup@t-online.de> | 10 | 2002-06-17 David Kastrup <David.Kastrup@t-online.de> |
| 2 | 11 | ||
| 3 | * tramp.texi: use correct @setfilename | 12 | * tramp.texi: use correct @setfilename |
diff --git a/man/files.texi b/man/files.texi index 347c3a11c14..35c7b558732 100644 --- a/man/files.texi +++ b/man/files.texi | |||
| @@ -2977,42 +2977,55 @@ extract or manipulate the subfiles in the archive. | |||
| 2977 | @section Remote Files | 2977 | @section Remote Files |
| 2978 | 2978 | ||
| 2979 | @cindex Tramp | 2979 | @cindex Tramp |
| 2980 | In the following, file access via FTP will be discussed. In | ||
| 2981 | addition to that facility, it is also possible to access remote files | ||
| 2982 | through a shell connection. @xref{Top, The Tramp Manual,, tramp, The | ||
| 2983 | Tramp Manual}. | ||
| 2984 | |||
| 2985 | @cindex FTP | 2980 | @cindex FTP |
| 2986 | @cindex remote file access | 2981 | @cindex remote file access |
| 2987 | You can refer to files on other machines using a special file name syntax: | 2982 | You can refer to files on other machines using a special file name |
| 2983 | syntax: | ||
| 2988 | 2984 | ||
| 2989 | @example | 2985 | @example |
| 2990 | @group | 2986 | @group |
| 2991 | /@var{host}:@var{filename} | 2987 | /@var{host}:@var{filename} |
| 2992 | /@var{user}@@@var{host}:@var{filename} | 2988 | /@var{user}@@@var{host}:@var{filename} |
| 2993 | /@var{user}@@@var{host}#@var{port}:@var{filename} | 2989 | /@var{user}@@@var{host}#@var{port}:@var{filename} |
| 2990 | /@var{method}:@var{user}@@@var{host}:@var{filename} | ||
| 2991 | /@var{method}:@var{user}@@@var{host}#@var{port}:@var{filename} | ||
| 2994 | @end group | 2992 | @end group |
| 2995 | @end example | 2993 | @end example |
| 2996 | 2994 | ||
| 2997 | @noindent | 2995 | @noindent |
| 2998 | When you do this, Emacs uses the FTP program to read and write files on | 2996 | When you do this, Emacs may use the FTP program to access files on the |
| 2999 | the specified host. It logs in through FTP using your user name or the | 2997 | remote host, or Emacs may use a remote-login program (such as |
| 3000 | name @var{user}. It may ask you for a password from time to time; this | 2998 | @command{ssh}, @command{rlogin}, or @command{telnet}) to do this. |
| 3001 | is used for logging in on @var{host}. The form using @var{port} allows | 2999 | |
| 3002 | you to access servers running on a non-default TCP port. | 3000 | You can always specify in the file name which method should be used to |
| 3003 | 3001 | access the remote files, for example | |
| 3004 | For using Tramp, the file name syntax looks like this: | 3002 | @file{/ftp:@var{user}@@@var{host}:@var{filename}} will use FTP, whereas |
| 3005 | 3003 | @file{/sm:@var{user}@@@var{host}:@var{filename}} will use | |
| 3006 | @example | 3004 | @command{ssh}. When no method is specified in the file name, Emacs |
| 3007 | @group | 3005 | determines a default method according to the following rules: |
| 3008 | /[@var{host}]@var{filename} | 3006 | |
| 3009 | /[@var{user}@@@var{host}]@var{filename} | 3007 | @enumerate |
| 3010 | /[@var{method}/@var{user}@@@var{host}]@var{filename} | 3008 | @item |
| 3011 | @end group | 3009 | If the host name starts with @samp{ftp.} (with dot), then Emacs assumes |
| 3012 | @end example | 3010 | the @command{ftp} method. |
| 3011 | @item | ||
| 3012 | If the user name is @samp{ftp} or @samp{anonymous}, then Emacs assumes | ||
| 3013 | the @command{ftp} method. | ||
| 3014 | @item | ||
| 3015 | Otherwise, Emacs assumes the @command{sm} method. | ||
| 3016 | @end enumerate | ||
| 3013 | 3017 | ||
| 3014 | @noindent | 3018 | @noindent |
| 3015 | Note that the square brackets are part of the file names. | 3019 | Remote file access through FTP is handled by the Ange-FTP package, which |
| 3020 | is documented in the following. Remote file access through the other | ||
| 3021 | methods is handled by the Tramp package, which has its own manual. | ||
| 3022 | @xref{Top, The Tramp Manual,, tramp, The Tramp Manual}. | ||
| 3023 | |||
| 3024 | When the Ange-FTP package is used, Emacs logs in through FTP using your | ||
| 3025 | user name or the name @var{user}. It may ask you for a password from | ||
| 3026 | time to time; this is used for logging in on @var{host}. The form using | ||
| 3027 | @var{port} allows you to access servers running on a non-default TCP | ||
| 3028 | port. | ||
| 3016 | 3029 | ||
| 3017 | @cindex backups for remote files | 3030 | @cindex backups for remote files |
| 3018 | @vindex ange-ftp-make-backup-files | 3031 | @vindex ange-ftp-make-backup-files |
diff --git a/man/tramp.texi b/man/tramp.texi index c90fbadcb55..d4408fa2277 100644 --- a/man/tramp.texi +++ b/man/tramp.texi | |||
| @@ -8,12 +8,6 @@ | |||
| 8 | @c This is *so* much nicer :) | 8 | @c This is *so* much nicer :) |
| 9 | @footnotestyle end | 9 | @footnotestyle end |
| 10 | 10 | ||
| 11 | @c Version values, for easy modification | ||
| 12 | @c NOTE: The 'UPDATED' value is updated by the 'time-stamp' function. | ||
| 13 | @c If you change it by hand, the modifications will not stay. | ||
| 14 | @set VERSION $Revision: 1.3 $ | ||
| 15 | @set UPDATED Monday, 17 June, 2002 | ||
| 16 | |||
| 17 | 11 | ||
| 18 | @c Entries for @command{install-info} to use | 12 | @c Entries for @command{install-info} to use |
| 19 | @direntry | 13 | @direntry |
| @@ -61,7 +55,6 @@ approved by the Free Software Foundation. | |||
| 61 | 55 | ||
| 62 | @titlepage | 56 | @titlepage |
| 63 | @title @tramp{} User Manual | 57 | @title @tramp{} User Manual |
| 64 | @subtitle Last updated @value{UPDATED} | ||
| 65 | 58 | ||
| 66 | @author by Daniel Pittman | 59 | @author by Daniel Pittman |
| 67 | @author based on documentation by Kai Gro@ss{}johann | 60 | @author based on documentation by Kai Gro@ss{}johann |
| @@ -102,9 +95,6 @@ local and the remote host, whereas @tramp{} uses a combination of | |||
| 102 | @command{rsh} and @command{rcp} or other work-alike programs, such as | 95 | @command{rsh} and @command{rcp} or other work-alike programs, such as |
| 103 | @command{ssh}/@command{scp}. | 96 | @command{ssh}/@command{scp}. |
| 104 | 97 | ||
| 105 | This is version @value{VERSION} of the @tramp{} manual, last updated on | ||
| 106 | @value{UPDATED}. | ||
| 107 | |||
| 108 | You can find the latest version of this document on the web at | 98 | You can find the latest version of this document on the web at |
| 109 | @uref{http://www.freesoftware.fsf.org/tramp/}. | 99 | @uref{http://www.freesoftware.fsf.org/tramp/}. |
| 110 | 100 | ||
| @@ -726,6 +716,13 @@ normal login shell is set up to ask them a number of questions when | |||
| 726 | logging in. This procedure avoids these questions, and just gives | 716 | logging in. This procedure avoids these questions, and just gives |
| 727 | @tramp{} a more-or-less `standard' login shell to work with. | 717 | @tramp{} a more-or-less `standard' login shell to work with. |
| 728 | 718 | ||
| 719 | Note that this procedure does not eliminate questions asked by | ||
| 720 | @command{ssh} itself. For example, @command{ssh} might ask ``Are you | ||
| 721 | sure you want to continue connecting?'' if the host key of the remote | ||
| 722 | host is not known. Tramp does not know how to deal with such a | ||
| 723 | question (yet), therefore you will need to make sure that you can log | ||
| 724 | in without such questions. | ||
| 725 | |||
| 729 | This is also useful for Windows users where @command{ssh}, when | 726 | This is also useful for Windows users where @command{ssh}, when |
| 730 | invoked from an Emacs buffer, tells them that it is not allocating a | 727 | invoked from an Emacs buffer, tells them that it is not allocating a |
| 731 | pseudo tty. When this happens, the login shell is wont to not print | 728 | pseudo tty. When this happens, the login shell is wont to not print |
| @@ -1091,6 +1088,13 @@ shell. The strategy here is to wait for the shell prompt. In order to | |||
| 1091 | recognize the shell prompt, the variable @code{shell-prompt-pattern} has | 1088 | recognize the shell prompt, the variable @code{shell-prompt-pattern} has |
| 1092 | to be set correctly to recognize the shell prompt on the remote host. | 1089 | to be set correctly to recognize the shell prompt on the remote host. |
| 1093 | 1090 | ||
| 1091 | Note that Tramp requires the match for @code{shell-prompt-pattern} to | ||
| 1092 | be at the end of the buffer. Many people have something like the | ||
| 1093 | following as the value for the variable: @code{"^[^>$][>$] *"}. Now | ||
| 1094 | suppose your shell prompt is @code{a <b> c $ }. In this case, Tramp | ||
| 1095 | recognizes the @code{>} character as the end of the prompt, but it is | ||
| 1096 | not at the end of the buffer. | ||
| 1097 | |||
| 1094 | @item @code{tset} and other questions | 1098 | @item @code{tset} and other questions |
| 1095 | 1099 | ||
| 1096 | Some people invoke the @code{tset} program from their shell startup | 1100 | Some people invoke the @code{tset} program from their shell startup |
| @@ -1640,11 +1644,7 @@ mailing list. | |||
| 1640 | @c shells. | 1644 | @c shells. |
| 1641 | @c * Explain how tramp.el works in principle: open a shell on a remote | 1645 | @c * Explain how tramp.el works in principle: open a shell on a remote |
| 1642 | @c host and then send commands to it. | 1646 | @c host and then send commands to it. |
| 1647 | @c * Mention that bookmarks are a cool feature to go along with Tramp. | ||
| 1648 | @c * Make terminology "inline" vs "out-of-band" consistent. | ||
| 1649 | @c It seems that "external" is also used instead of "out-of-band". | ||
| 1643 | 1650 | ||
| 1644 | @c Local Variables: | ||
| 1645 | @c eval: (add-hook 'write-file-functions 'time-stamp) | ||
| 1646 | @c time-stamp-start: "@set UPDATED " | ||
| 1647 | @c time-stamp-format: "%:a, %:d %:b, %:y" | ||
| 1648 | @c time-stamp-end: "$" | ||
| 1649 | @c time-stamp-line-limit: 50 | ||
| 1650 | @c End: | ||