diff options
| author | Kai Großjohann | 2002-07-13 18:03:55 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2002-07-13 18:03:55 +0000 |
| commit | f37fc5a7d18d161afeedeaedce156a0d9cca2b5b (patch) | |
| tree | 44e2140fd4c19ca9fbe76c1a48cf05333c7f4723 | |
| parent | b29019f8764077aa87bdc4c1aa42ab80636bf17b (diff) | |
| download | emacs-f37fc5a7d18d161afeedeaedce156a0d9cca2b5b.tar.gz emacs-f37fc5a7d18d161afeedeaedce156a0d9cca2b5b.zip | |
Fix copyright years.
(Filename Syntax, Multi-hop filename syntax): Explain two syntaxes.
(Issues): Explain why there are two syntaxes.
| -rw-r--r-- | man/ChangeLog | 4 | ||||
| -rw-r--r-- | man/tramp.texi | 99 |
2 files changed, 70 insertions, 33 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 8e6aa9cc464..7904bf74cf7 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -2,10 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | * files.texi (Remote Files): Explain new unified file name synatx. | 3 | * files.texi (Remote Files): Explain new unified file name synatx. |
| 4 | 4 | ||
| 5 | * tramp.texi: Remove version variables. | 5 | * tramp.texi: Remove version variables. Fix copyright years. |
| 6 | (Inline methods): Clarify which questions `smx' deals with. | 6 | (Inline methods): Clarify which questions `smx' deals with. |
| 7 | (Remote shell setup): shell-prompt-pattern must match at end of | 7 | (Remote shell setup): shell-prompt-pattern must match at end of |
| 8 | buffer. | 8 | buffer. |
| 9 | (Filename Syntax, Multi-hop filename syntax): Explain two syntaxes. | ||
| 10 | (Issues): Explain why there are two syntaxes. | ||
| 9 | 11 | ||
| 10 | 2002-06-17 David Kastrup <David.Kastrup@t-online.de> | 12 | 2002-06-17 David Kastrup <David.Kastrup@t-online.de> |
| 11 | 13 | ||
diff --git a/man/tramp.texi b/man/tramp.texi index d4408fa2277..a081e8812a9 100644 --- a/man/tramp.texi +++ b/man/tramp.texi | |||
| @@ -25,7 +25,8 @@ | |||
| 25 | This file documents @tramp{}, a remote file editing package for Emacs and | 25 | This file documents @tramp{}, a remote file editing package for Emacs and |
| 26 | XEmacs. | 26 | XEmacs. |
| 27 | 27 | ||
| 28 | Copyright @copyright{} 1999, 2000 Free Software Foundation, Inc. | 28 | Copyright @copyright{} 1999, 2000, 2001, 2002 Free Software |
| 29 | Foundation, Inc. | ||
| 29 | 30 | ||
| 30 | Permission is granted to make and distribute verbatim copies of this | 31 | Permission is granted to make and distribute verbatim copies of this |
| 31 | manual provided the copyright notice and this permission notice are | 32 | manual provided the copyright notice and this permission notice are |
| @@ -1149,60 +1150,79 @@ by the @command{EFS} and @command{ange-ftp} packages. | |||
| 1149 | @node Filename Syntax | 1150 | @node Filename Syntax |
| 1150 | @section @tramp{} filename conventions | 1151 | @section @tramp{} filename conventions |
| 1151 | 1152 | ||
| 1152 | To access the file <path> on the remote machine <machine> you would | 1153 | On Emacs, the Ange-FTP and Tramp filenames use a unified syntax. On |
| 1153 | specify the filename @file{/[<machine>]<path>}. (The square brackets | 1154 | XEmacs, EFS and Tramp use different formats for the filenames. |
| 1154 | are part of the file name.) This will connect to <machine> and transfer | 1155 | Therefore, the following will describe the Emacs and XEmacs cases |
| 1155 | the file using the default method. @xref{Default Method}. | 1156 | separately. |
| 1156 | 1157 | ||
| 1157 | Some examples of @tramp{} filenames are: | 1158 | On Emacs, to access the file @var{path} on the remote machine |
| 1159 | @var{machine} you would specify the filename | ||
| 1160 | @file{/@var{machine}:@var{path}}. This will connect to @var{machine} | ||
| 1161 | and transfer the file using the default method. @xref{Default | ||
| 1162 | Method}. On XEmacs, use @file{/[@var{machine}]@var{path}}. (The | ||
| 1163 | square brackets are part of the file name.) | ||
| 1164 | |||
| 1165 | Some examples of @tramp{} filenames are shown below. In each case, | ||
| 1166 | the Emacs-style filename is shown first, then the XEmacs-style | ||
| 1167 | filename. | ||
| 1158 | 1168 | ||
| 1159 | @table @file | 1169 | @table @file |
| 1160 | @item /[melancholia].emacs | 1170 | @item /melancholia:.emacs |
| 1171 | @itemx /[melancholia].emacs | ||
| 1161 | Edit the file @file{.emacs} in your home directory on the machine | 1172 | Edit the file @file{.emacs} in your home directory on the machine |
| 1162 | @code{melancholia}. | 1173 | @code{melancholia}. |
| 1163 | 1174 | ||
| 1164 | @item /[melancholia.danann.net].emacs | 1175 | @item /melancholia.danann.net:.emacs |
| 1176 | @itemx /[melancholia.danann.net].emacs | ||
| 1165 | This edits the same file, using the fully qualified domain name of | 1177 | This edits the same file, using the fully qualified domain name of |
| 1166 | the machine. | 1178 | the machine. |
| 1167 | 1179 | ||
| 1168 | @item /[melancholia]~/.emacs | 1180 | @item /melancholia:~/.emacs |
| 1181 | @itemx /[melancholia]~/.emacs | ||
| 1169 | This also edits the same file --- the @file{~} is expanded to your | 1182 | This also edits the same file --- the @file{~} is expanded to your |
| 1170 | home directory on the remote machine, just like it is locally. | 1183 | home directory on the remote machine, just like it is locally. |
| 1171 | 1184 | ||
| 1172 | @item /[melancholia]~daniel/.emacs | 1185 | @item /melancholia:~daniel/.emacs |
| 1186 | @itemx /[melancholia]~daniel/.emacs | ||
| 1173 | This edits the file @file{.emacs} in the home directory of the user | 1187 | This edits the file @file{.emacs} in the home directory of the user |
| 1174 | @code{daniel} on the machine @code{melancholia}. The @file{~<user>} | 1188 | @code{daniel} on the machine @code{melancholia}. The @file{~<user>} |
| 1175 | construct is expanded to the home directory of that user on the remote | 1189 | construct is expanded to the home directory of that user on the remote |
| 1176 | machine. | 1190 | machine. |
| 1177 | 1191 | ||
| 1178 | @item /[melancholia]/etc/squid.conf | 1192 | @item /melancholia:/etc/squid.conf |
| 1193 | @itemx /[melancholia]/etc/squid.conf | ||
| 1179 | This edits the file @file{/etc/squid.conf} on the machine | 1194 | This edits the file @file{/etc/squid.conf} on the machine |
| 1180 | @code{melancholia}. | 1195 | @code{melancholia}. |
| 1181 | 1196 | ||
| 1182 | @end table | 1197 | @end table |
| 1183 | 1198 | ||
| 1184 | |||
| 1185 | Unless you specify a different name to use, @tramp{} will use the current | 1199 | Unless you specify a different name to use, @tramp{} will use the current |
| 1186 | local user name as the remote user name to log in with. If you need to | 1200 | local user name as the remote user name to log in with. If you need to |
| 1187 | log in as a different user, you can specify the user name as part of the | 1201 | log in as a different user, you can specify the user name as part of the |
| 1188 | filename. | 1202 | filename. |
| 1189 | 1203 | ||
| 1190 | To log in to the remote machine as a specific user, you use the syntax | 1204 | On Emacs, to log in to the remote machine as a specific user, you use |
| 1191 | @file{/[<user>@@<machine>]/path/to.file}. That means that connecting to | 1205 | the syntax @file{/@var{user}@@@var{machine}:/path/to.file}. On |
| 1192 | @code{melancholia} as @code{daniel} and editing @file{.emacs} in your | 1206 | XEmacs, use @file{/[@var{user}@@@var{machine}]/path/to.file}. That |
| 1193 | home directory you would specify @file{/[daniel@@melancholia].emacs}. | 1207 | means that connecting to @code{melancholia} as @code{daniel} and |
| 1208 | editing @file{.emacs} in your home directory you would specify | ||
| 1209 | @file{/daniel@@melancholia:.emacs} on Emacs and | ||
| 1210 | @file{/[daniel@@melancholia].emacs} on XEmacs. | ||
| 1194 | 1211 | ||
| 1195 | 1212 | ||
| 1196 | It is also possible to specify other file transfer methods | 1213 | It is also possible to specify other file transfer methods |
| 1197 | (@pxref{Default Method}) as part of the filename. This is done by | 1214 | (@pxref{Default Method}) as part of the filename. On Emacs, this is |
| 1198 | replacing the initial @file{/[} with @file{/[<method>/}. (Note the | 1215 | done by puttig the method before the user and host name, as in |
| 1199 | trailing slash!) The user, machine and file specification remain the | 1216 | @file{/@var{method}:} (note the trailing colon). On XEmacs, it is |
| 1200 | same. | 1217 | done by replacing the initial @file{/[} with @file{/[<method>/}. |
| 1218 | (Note the trailing slash!) The user, machine and file specification | ||
| 1219 | remain the same. | ||
| 1201 | 1220 | ||
| 1202 | So, to connect to the machine @code{melancholia} as @code{daniel}, using | 1221 | So, to connect to the machine @code{melancholia} as @code{daniel}, |
| 1203 | the @option{su} method to transfer files, and edit @file{.emacs} in my | 1222 | using the @option{su} method to transfer files, and edit @file{.emacs} |
| 1204 | home directory I would specify the filename | 1223 | in my home directory I would specify the filename |
| 1205 | @file{/[su/daniel@@melancholia].emacs}. | 1224 | @file{/su:daniel@@melancholia:.emacs} on Emacs and |
| 1225 | @file{/[su/daniel@@melancholia].emacs} on XEmacs. | ||
| 1206 | 1226 | ||
| 1207 | 1227 | ||
| 1208 | @node Multi-hop filename syntax | 1228 | @node Multi-hop filename syntax |
| @@ -1210,18 +1230,21 @@ home directory I would specify the filename | |||
| 1210 | 1230 | ||
| 1211 | The syntax of multi-hop file names is necessarily slightly different | 1231 | The syntax of multi-hop file names is necessarily slightly different |
| 1212 | than the syntax of other @tramp{} file names. Here's an example multi-hop | 1232 | than the syntax of other @tramp{} file names. Here's an example multi-hop |
| 1213 | file name: | 1233 | file name, first in Emacs syntax and then in XEmacs syntax: |
| 1214 | 1234 | ||
| 1235 | @file{/multi:rsh:out@@gate:telnet:kai@@real.host:/path/to.file} | ||
| 1215 | @file{/[multi/rsh:out@@gate/telnet:kai@@real.host]/path/to.file} | 1236 | @file{/[multi/rsh:out@@gate/telnet:kai@@real.host]/path/to.file} |
| 1216 | 1237 | ||
| 1217 | This is quite a mouthful. So let's go through it step by step. The | 1238 | This is quite a mouthful. So let's go through it step by step. The |
| 1218 | file name consists of three parts, separated by slashes and square | 1239 | file name consists of three parts. On Emacs, the parts are separated |
| 1219 | brackets. The first part is @file{/[multi}, the method specification. | 1240 | by colons, on XEmacs they are separated by slashes and square |
| 1220 | The second part is @file{rsh:out@@gate/telnet:kai@@real.host} and | 1241 | brackets. The first part is @file{/multi:} (or @file{/[multi}), the |
| 1221 | specifies the hops. (Yes, the second part may contain even more | 1242 | method specification. The second part is |
| 1222 | slashes, so that's why this file name has more than two colons in it.) | 1243 | @file{rsh:out@@gate:telnet:kai@@real.host} (or |
| 1223 | The final part is @file{/path/to.file} and specifies the file name on | 1244 | @file{rsh:out@@gate/telnet:kai@@real.host}) and specifies the hops. |
| 1224 | the remote host. | 1245 | (Yes, on Emacs the second part may contain even more colons, so that's why |
| 1246 | this file name has more than two colons in it.) The final part is | ||
| 1247 | @file{/path/to.file} and specifies the file name on the remote host. | ||
| 1225 | 1248 | ||
| 1226 | The first part and the final part should be clear. @ref{Multi-hop | 1249 | The first part and the final part should be clear. @ref{Multi-hop |
| 1227 | Methods}, for a list of alternatives for the method specification. | 1250 | Methods}, for a list of alternatives for the method specification. |
| @@ -1632,6 +1655,18 @@ emulation macro to @tramp{}, but if somebody who uses XEmacs 20 steps | |||
| 1632 | forward and wishes to implement and test it, please contact me or the | 1655 | forward and wishes to implement and test it, please contact me or the |
| 1633 | mailing list. | 1656 | mailing list. |
| 1634 | 1657 | ||
| 1658 | @item The @tramp{} filename syntax differs between Emacs and XEmacs. | ||
| 1659 | |||
| 1660 | The Emacs maintainers wish to use a unified filename syntax for | ||
| 1661 | Ange-FTP and @tramp{} so that users don't have to learn a new | ||
| 1662 | syntax. It is sufficient to learn some extensions to the old syntax. | ||
| 1663 | |||
| 1664 | For the XEmacs maintainers, the problems caused from using a unified | ||
| 1665 | filename syntax are greater than the gains. The XEmacs package | ||
| 1666 | system uses EFS for downloading new packages. So, obviously, EFS has | ||
| 1667 | to be installed from the start. If the filenames were unified, Tramp | ||
| 1668 | would have to be installed from the start, too. | ||
| 1669 | |||
| 1635 | @end itemize | 1670 | @end itemize |
| 1636 | 1671 | ||
| 1637 | 1672 | ||