aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2002-07-13 18:03:55 +0000
committerKai Großjohann2002-07-13 18:03:55 +0000
commitf37fc5a7d18d161afeedeaedce156a0d9cca2b5b (patch)
tree44e2140fd4c19ca9fbe76c1a48cf05333c7f4723
parentb29019f8764077aa87bdc4c1aa42ab80636bf17b (diff)
downloademacs-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/ChangeLog4
-rw-r--r--man/tramp.texi99
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
102002-06-17 David Kastrup <David.Kastrup@t-online.de> 122002-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 @@
25This file documents @tramp{}, a remote file editing package for Emacs and 25This file documents @tramp{}, a remote file editing package for Emacs and
26XEmacs. 26XEmacs.
27 27
28Copyright @copyright{} 1999, 2000 Free Software Foundation, Inc. 28Copyright @copyright{} 1999, 2000, 2001, 2002 Free Software
29Foundation, Inc.
29 30
30Permission is granted to make and distribute verbatim copies of this 31Permission is granted to make and distribute verbatim copies of this
31manual provided the copyright notice and this permission notice are 32manual 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
1152To access the file <path> on the remote machine <machine> you would 1153On Emacs, the Ange-FTP and Tramp filenames use a unified syntax. On
1153specify the filename @file{/[<machine>]<path>}. (The square brackets 1154XEmacs, EFS and Tramp use different formats for the filenames.
1154are part of the file name.) This will connect to <machine> and transfer 1155Therefore, the following will describe the Emacs and XEmacs cases
1155the file using the default method. @xref{Default Method}. 1156separately.
1156 1157
1157Some examples of @tramp{} filenames are: 1158On 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}
1161and transfer the file using the default method. @xref{Default
1162Method}. On XEmacs, use @file{/[@var{machine}]@var{path}}. (The
1163square brackets are part of the file name.)
1164
1165Some examples of @tramp{} filenames are shown below. In each case,
1166the Emacs-style filename is shown first, then the XEmacs-style
1167filename.
1158 1168
1159@table @file 1169@table @file
1160@item /[melancholia].emacs 1170@item /melancholia:.emacs
1171@itemx /[melancholia].emacs
1161Edit the file @file{.emacs} in your home directory on the machine 1172Edit 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
1165This edits the same file, using the fully qualified domain name of 1177This edits the same file, using the fully qualified domain name of
1166the machine. 1178the machine.
1167 1179
1168@item /[melancholia]~/.emacs 1180@item /melancholia:~/.emacs
1181@itemx /[melancholia]~/.emacs
1169This also edits the same file --- the @file{~} is expanded to your 1182This also edits the same file --- the @file{~} is expanded to your
1170home directory on the remote machine, just like it is locally. 1183home 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
1173This edits the file @file{.emacs} in the home directory of the user 1187This 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>}
1175construct is expanded to the home directory of that user on the remote 1189construct is expanded to the home directory of that user on the remote
1176machine. 1190machine.
1177 1191
1178@item /[melancholia]/etc/squid.conf 1192@item /melancholia:/etc/squid.conf
1193@itemx /[melancholia]/etc/squid.conf
1179This edits the file @file{/etc/squid.conf} on the machine 1194This 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
1185Unless you specify a different name to use, @tramp{} will use the current 1199Unless you specify a different name to use, @tramp{} will use the current
1186local user name as the remote user name to log in with. If you need to 1200local user name as the remote user name to log in with. If you need to
1187log in as a different user, you can specify the user name as part of the 1201log in as a different user, you can specify the user name as part of the
1188filename. 1202filename.
1189 1203
1190To log in to the remote machine as a specific user, you use the syntax 1204On 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 1205the syntax @file{/@var{user}@@@var{machine}:/path/to.file}. On
1192@code{melancholia} as @code{daniel} and editing @file{.emacs} in your 1206XEmacs, use @file{/[@var{user}@@@var{machine}]/path/to.file}. That
1193home directory you would specify @file{/[daniel@@melancholia].emacs}. 1207means that connecting to @code{melancholia} as @code{daniel} and
1208editing @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
1196It is also possible to specify other file transfer methods 1213It 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
1198replacing the initial @file{/[} with @file{/[<method>/}. (Note the 1215done by puttig the method before the user and host name, as in
1199trailing slash!) The user, machine and file specification remain the 1216@file{/@var{method}:} (note the trailing colon). On XEmacs, it is
1200same. 1217done by replacing the initial @file{/[} with @file{/[<method>/}.
1218(Note the trailing slash!) The user, machine and file specification
1219remain the same.
1201 1220
1202So, to connect to the machine @code{melancholia} as @code{daniel}, using 1221So, to connect to the machine @code{melancholia} as @code{daniel},
1203the @option{su} method to transfer files, and edit @file{.emacs} in my 1222using the @option{su} method to transfer files, and edit @file{.emacs}
1204home directory I would specify the filename 1223in 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
1211The syntax of multi-hop file names is necessarily slightly different 1231The syntax of multi-hop file names is necessarily slightly different
1212than the syntax of other @tramp{} file names. Here's an example multi-hop 1232than the syntax of other @tramp{} file names. Here's an example multi-hop
1213file name: 1233file 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
1217This is quite a mouthful. So let's go through it step by step. The 1238This is quite a mouthful. So let's go through it step by step. The
1218file name consists of three parts, separated by slashes and square 1239file name consists of three parts. On Emacs, the parts are separated
1219brackets. The first part is @file{/[multi}, the method specification. 1240by colons, on XEmacs they are separated by slashes and square
1220The second part is @file{rsh:out@@gate/telnet:kai@@real.host} and 1241brackets. The first part is @file{/multi:} (or @file{/[multi}), the
1221specifies the hops. (Yes, the second part may contain even more 1242method specification. The second part is
1222slashes, so that's why this file name has more than two colons in it.) 1243@file{rsh:out@@gate:telnet:kai@@real.host} (or
1223The 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.
1224the remote host. 1245(Yes, on Emacs the second part may contain even more colons, so that's why
1246this 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
1226The first part and the final part should be clear. @ref{Multi-hop 1249The first part and the final part should be clear. @ref{Multi-hop
1227Methods}, for a list of alternatives for the method specification. 1250Methods}, 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
1632forward and wishes to implement and test it, please contact me or the 1655forward and wishes to implement and test it, please contact me or the
1633mailing list. 1656mailing list.
1634 1657
1658@item The @tramp{} filename syntax differs between Emacs and XEmacs.
1659
1660The Emacs maintainers wish to use a unified filename syntax for
1661Ange-FTP and @tramp{} so that users don't have to learn a new
1662syntax. It is sufficient to learn some extensions to the old syntax.
1663
1664For the XEmacs maintainers, the problems caused from using a unified
1665filename syntax are greater than the gains. The XEmacs package
1666system uses EFS for downloading new packages. So, obviously, EFS has
1667to be installed from the start. If the filenames were unified, Tramp
1668would have to be installed from the start, too.
1669
1635@end itemize 1670@end itemize
1636 1671
1637 1672