aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorGlenn Morris2018-02-16 09:44:04 -0800
committerGlenn Morris2018-02-16 09:44:04 -0800
commit47106da23ac2b19ad994eed95cdcb0d33535281d (patch)
tree689994b90ebbf6d8567d3143aad15a8fec251179 /doc/misc
parent4ba32858d61eee16f17b51aca01c15211a0912f8 (diff)
parenta06a8ed5b66883202ae7182471570dfcabcea973 (diff)
downloademacs-47106da23ac2b19ad994eed95cdcb0d33535281d.tar.gz
emacs-47106da23ac2b19ad994eed95cdcb0d33535281d.zip
Merge from origin/emacs-26
a06a8ed (origin/emacs-26) ; * lisp/vc/vc-git.el (vc-git--program-vers... edc06ad Make 'byte-compile-error-on-warn' a safe file variable 9f5d8da ; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): ... f73905a Fix the doc string of flyspell-auto-correct-word e9c7ddc Improve the MS-Windows appendix of the Emacs manual 6ddb4bd Fix 'vc-git--program-version' 63c93f7 Fix typos and wording in the Emacs manual 42f15b0 * doc/emacs/programs.texi (Semantic): Order programming langu... b46be29 More improvements for the Emacs manual 874c0ed Minor wording change in Emacs manual 53511f9 Another set of changes for the manual 78426b8 Improvements on tramp.texi 0dca618 Tramp minor doc fixes Conflicts: doc/misc/tramp.texi
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi122
1 files changed, 70 insertions, 52 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index e21df5ac39b..0dd82c582c2 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1,18 +1,16 @@
1\input texinfo @c -*- mode: texinfo; coding: utf-8 -*- 1\input texinfo @c -*- mode: texinfo; coding: utf-8 -*-
2@setfilename ../../info/tramp.info 2@setfilename ../../info/tramp.info
3@c %**start of header 3@c %**start of header
4@settitle TRAMP User Manual
5@include docstyle.texi 4@include docstyle.texi
6@c %**end of header
7
8@c This is *so* much nicer :)
9@footnotestyle end
10
11@c In the Tramp repository, the version number is auto-frobbed from 5@c In the Tramp repository, the version number is auto-frobbed from
12@c configure.ac, so you should edit that file and run 6@c configure.ac, so you should edit that file and run
13@c "autoconf && ./configure" to change the version number. 7@c "autoconf && ./configure" to change the version number.
14
15@include trampver.texi 8@include trampver.texi
9@settitle @value{tramp} @value{trampver} User Manual
10@c %**end of header
11
12@c This is *so* much nicer :)
13@footnotestyle end
16 14
17@c Macro for formatting a file name according to the respective 15@c Macro for formatting a file name according to the respective
18@c syntax. Macro arguments should not have any leading or trailing 16@c syntax. Macro arguments should not have any leading or trailing
@@ -48,7 +46,7 @@ copy and modify this GNU manual.''
48@end direntry 46@end direntry
49 47
50@titlepage 48@titlepage
51@title @value{tramp} version @value{trampver} User Manual 49@title @value{tramp} @value{trampver} User Manual
52@author by Daniel Pittman 50@author by Daniel Pittman
53@author based on documentation by Kai Großjohann 51@author based on documentation by Kai Großjohann
54@end titlepage 52@end titlepage
@@ -57,9 +55,9 @@ copy and modify this GNU manual.''
57 55
58 56
59@node Top, Overview, (dir), (dir) 57@node Top, Overview, (dir), (dir)
60@top @value{tramp} version @value{trampver} User Manual 58@top @value{tramp} @value{trampver} User Manual
61 59
62This file documents @value{tramp} version @value{trampver}, a remote file 60This file documents @value{tramp} @value{trampver}, a remote file
63editing package for Emacs. 61editing package for Emacs.
64 62
65@value{tramp} stands for ``Transparent Remote (file) Access, Multiple 63@value{tramp} stands for ``Transparent Remote (file) Access, Multiple
@@ -320,7 +318,7 @@ behind the scenes when you open a file with @value{tramp}.
320@chapter Obtaining @value{tramp} 318@chapter Obtaining @value{tramp}
321@cindex obtaining @value{tramp} 319@cindex obtaining @value{tramp}
322 320
323@value{tramp} is included as part of Emacs (since Emacs version 22.1). 321@value{tramp} is included as part of Emacs (since Emacs 22.1).
324 322
325@value{tramp} is also freely packaged for download on the Internet at 323@value{tramp} is also freely packaged for download on the Internet at
326@uref{https://ftp.gnu.org/gnu/tramp/}. 324@uref{https://ftp.gnu.org/gnu/tramp/}.
@@ -1462,8 +1460,8 @@ server.
1462 1460
1463Both ssh and PuTTY support such proxy settings, using an HTTP tunnel 1461Both ssh and PuTTY support such proxy settings, using an HTTP tunnel
1464via the @command{CONNECT} command (conforming to RFC 2616, 2817 1462via the @command{CONNECT} command (conforming to RFC 2616, 2817
1465specifications). Proxy servers using HTTP version 1.1 or later 1463specifications). Proxy servers using HTTP 1.1 or later protocol
1466protocol support this command. 1464support this command.
1467 1465
1468@subsection Tunneling with ssh 1466@subsection Tunneling with ssh
1469 1467
@@ -1501,6 +1499,7 @@ proxy server @samp{proxy.your.domain} on port 3128.
1501@cindex using non-standard methods 1499@cindex using non-standard methods
1502@cindex create your own methods 1500@cindex create your own methods
1503 1501
1502@vindex tramp-methods
1504The @code{tramp-methods} variable currently has an exhaustive list of 1503The @code{tramp-methods} variable currently has an exhaustive list of
1505predefined methods. Any part of this list can be modified with more 1504predefined methods. Any part of this list can be modified with more
1506suitable settings. Refer to the Lisp documentation of that variable, 1505suitable settings. Refer to the Lisp documentation of that variable,
@@ -1511,8 +1510,8 @@ accessible with @kbd{C-h v tramp-methods @key{RET}}.
1511@section Selecting config files for user/host name completion 1510@section Selecting config files for user/host name completion
1512@cindex customizing completion 1511@cindex customizing completion
1513@cindex selecting config files 1512@cindex selecting config files
1514@vindex tramp-completion-function-alist
1515 1513
1514@vindex tramp-completion-function-alist
1516@code{tramp-completion-function-alist} uses predefined files for user 1515@code{tramp-completion-function-alist} uses predefined files for user
1517and host name completion (@pxref{File name completion}). For each 1516and host name completion (@pxref{File name completion}). For each
1518method, it keeps a set of configuration files and a function that can 1517method, it keeps a set of configuration files and a function that can
@@ -1650,8 +1649,8 @@ the need.
1650 1649
1651@anchor{Using an authentication file} 1650@anchor{Using an authentication file}
1652@subsection Using an authentication file 1651@subsection Using an authentication file
1653@vindex auth-sources
1654 1652
1653@vindex auth-sources
1655The package @file{auth-source.el}, originally developed for No Gnus, 1654The package @file{auth-source.el}, originally developed for No Gnus,
1656reads passwords from different sources, @xref{Help for users, , 1655reads passwords from different sources, @xref{Help for users, ,
1657auth-source, auth}. The default authentication file is 1656auth-source, auth}. The default authentication file is
@@ -1697,7 +1696,6 @@ Set @code{password-cache} to @code{nil} to disable password caching.
1697@node Connection caching 1696@node Connection caching
1698@section Reusing connection related information 1697@section Reusing connection related information
1699@cindex caching 1698@cindex caching
1700@vindex tramp-persistency-file-name
1701 1699
1702@vindex tramp-persistency-file-name 1700@vindex tramp-persistency-file-name
1703For faster initial connection times, @value{tramp} stores previous 1701For faster initial connection times, @value{tramp} stores previous
@@ -1721,11 +1719,11 @@ connection related information for that host and creates a new entry.
1721 1719
1722@node Predefined connection information 1720@node Predefined connection information
1723@section Setting own connection related information 1721@section Setting own connection related information
1724@vindex tramp-connection-properties
1725 1722
1726For more precise customization, parameters specified by 1723For more precise customization, parameters specified by
1727@code{tramp-methods} can be overwritten manually. 1724@code{tramp-methods} can be overwritten manually.
1728 1725
1726@vindex tramp-connection-properties
1729Set @option{tramp-connection-properties} to manually override 1727Set @option{tramp-connection-properties} to manually override
1730@code{tramp-methods}. Properties in this list are in the form 1728@code{tramp-methods}. Properties in this list are in the form
1731@code{(@var{regexp} @var{property} @var{value})}. @var{regexp} 1729@code{(@var{regexp} @var{property} @var{value})}. @var{regexp}
@@ -1900,7 +1898,6 @@ prompts, for which @value{tramp} uses @option{tramp-wrong-passwd-regexp}.
1900@item @command{tset} and other questions 1898@item @command{tset} and other questions
1901@cindex unix command @command{tset} 1899@cindex unix command @command{tset}
1902@cindex @command{tset} unix command 1900@cindex @command{tset} unix command
1903@vindex tramp-terminal-type
1904 1901
1905@vindex tramp-terminal-type 1902@vindex tramp-terminal-type
1906To suppress inappropriate prompts for terminal type, @value{tramp} 1903To suppress inappropriate prompts for terminal type, @value{tramp}
@@ -1981,9 +1978,9 @@ shell-specific config files. For example, bash can use
1981 1978
1982@value{tramp} redefines the remote shell prompt internally for robust 1979@value{tramp} redefines the remote shell prompt internally for robust
1983parsing. This redefinition affects the looks of a prompt in an 1980parsing. This redefinition affects the looks of a prompt in an
1984interactive remote shell through commands, such as @kbd{M-x 1981interactive remote shell through commands, such as @kbd{M-x shell
1985shell}. Such prompts, however, can be reset to something more readable 1982@key{RET}}. Such prompts, however, can be reset to something more
1986and recognizable using these @value{tramp} variables. 1983readable and recognizable using these @value{tramp} variables.
1987 1984
1988@value{tramp} sets the @env{INSIDE_EMACS} variable in the startup 1985@value{tramp} sets the @env{INSIDE_EMACS} variable in the startup
1989script file @file{~/.emacs_SHELLNAME}. 1986script file @file{~/.emacs_SHELLNAME}.
@@ -2096,8 +2093,8 @@ directory for temporary files:
2096 2093
2097@item 2094@item
2098Open a remote connection with the command @kbd{C-x C-f 2095Open a remote connection with the command @kbd{C-x C-f
2099@trampfn{ssh,192.168.0.26#2222,}}, where @command{sshd} is listening 2096@trampfn{ssh,192.168.0.26#2222,} @key{RET}}, where @command{sshd} is
2100on port @samp{2222}. 2097listening on port @samp{2222}.
2101 2098
2102To add a corresponding entry to the @file{~/.ssh/config} file 2099To add a corresponding entry to the @file{~/.ssh/config} file
2103(recommended), use this: 2100(recommended), use this:
@@ -2124,7 +2121,7 @@ the previous example, fix the connection properties as follows:
2124 2121
2125@noindent 2122@noindent
2126Open a remote connection with a more concise command @kbd{C-x C-f 2123Open a remote connection with a more concise command @kbd{C-x C-f
2127@trampfn{ssh,android,}}. 2124@trampfn{ssh,android,} @key{RET}}.
2128@end itemize 2125@end itemize
2129 2126
2130 2127
@@ -2132,8 +2129,8 @@ Open a remote connection with a more concise command @kbd{C-x C-f
2132@section Auto-save and Backup configuration 2129@section Auto-save and Backup configuration
2133@cindex auto-save 2130@cindex auto-save
2134@cindex backup 2131@cindex backup
2135@vindex backup-directory-alist
2136 2132
2133@vindex backup-directory-alist
2137To avoid @value{tramp} from saving backup files owned by @samp{root} 2134To avoid @value{tramp} from saving backup files owned by @samp{root}
2138to locations accessible to others, default backup settings in 2135to locations accessible to others, default backup settings in
2139@option{backup-directory-alist} have to be altered. 2136@option{backup-directory-alist} have to be altered.
@@ -2176,7 +2173,6 @@ Disabling backups can be targeted to just the @option{su} and
2176@end group 2173@end group
2177@end lisp 2174@end lisp
2178 2175
2179@vindex backup-directory-alist
2180@vindex tramp-backup-directory-alist 2176@vindex tramp-backup-directory-alist
2181Another option is to create better backup file naming with user and 2177Another option is to create better backup file naming with user and
2182host names prefixed to the file name. For example, transforming 2178host names prefixed to the file name. For example, transforming
@@ -2237,8 +2233,9 @@ This section is incomplete. Please share your solutions.
2237@cindex @option{sshx} method with cygwin 2233@cindex @option{sshx} method with cygwin
2238 2234
2239Cygwin's @command{ssh} works only with a Cygwin version of Emacs. To 2235Cygwin's @command{ssh} works only with a Cygwin version of Emacs. To
2240check for compatibility: type @kbd{M-x eshell}, and start @kbd{ssh 2236check for compatibility: type @kbd{M-x eshell @key{RET}}, and start
2241test.host}. Incompatibilities trigger this message: 2237@kbd{ssh test.host @key{RET}}. Incompatibilities trigger this
2238message:
2242 2239
2243@example 2240@example
2244Pseudo-terminal will not be allocated because stdin is not a terminal. 2241Pseudo-terminal will not be allocated because stdin is not a terminal.
@@ -2555,8 +2552,8 @@ remote host name and file name. For example, hopping over a single
2555proxy @samp{bird@@bastion} to a remote file on @samp{you@@remotehost}: 2552proxy @samp{bird@@bastion} to a remote file on @samp{you@@remotehost}:
2556 2553
2557@example 2554@example
2558@c @kbd{C-x C-f @trampfn{ssh@value{postfixhop}bird@@bastion|ssh,you,remotehost,/path}} 2555@c @kbd{C-x C-f @trampfn{ssh@value{postfixhop}bird@@bastion|ssh,you,remotehost,/path} @key{RET}}
2559@kbd{C-x C-f @value{prefix}ssh@value{postfixhop}bird@@bastion|ssh@value{postfixhop}you@@remotehost@value{postfix}/path} 2556@kbd{C-x C-f @value{prefix}ssh@value{postfixhop}bird@@bastion|ssh@value{postfixhop}you@@remotehost@value{postfix}/path @key{RET}}
2560@end example 2557@end example
2561 2558
2562Proxies can take patterns @code{%h} or @code{%u}. 2559Proxies can take patterns @code{%h} or @code{%u}.
@@ -2671,9 +2668,9 @@ this. You could overwrite this behavior by evaluating
2671@end lisp 2668@end lisp
2672 2669
2673In addition to @option{tramp-remote-process-environment}, you can set 2670In addition to @option{tramp-remote-process-environment}, you can set
2674environment variables for invidivual remote process calls by 2671environment variables for individual remote process calls by
2675let-binding @code{process-environment}. @value{tramp} will apply any 2672let-binding @code{process-environment}. @value{tramp} applies any
2676entries which are not present in the global default value of 2673entries not present in the global default value of
2677@code{process-environment} (overriding 2674@code{process-environment} (overriding
2678@option{tramp-remote-process-environment} settings, if they conflict). 2675@option{tramp-remote-process-environment} settings, if they conflict).
2679For example: 2676For example:
@@ -2778,14 +2775,15 @@ host. Example:
2778@example 2775@example
2779@group 2776@group
2780@kbd{C-x C-f @trampfn{sudo,,} @key{RET}} 2777@kbd{C-x C-f @trampfn{sudo,,} @key{RET}}
2781@kbd{M-! tail -f /var/log/syslog.log & @key{RET}} 2778@kbd{M-& tail -f /var/log/syslog.log @key{RET}}
2782@end group 2779@end group
2783@end example 2780@end example
2784 2781
2785@command{tail} command outputs continuously to the local buffer, 2782@command{tail} command outputs continuously to the local buffer,
2786@file{*Async Shell Command*} 2783@file{*Async Shell Command*}
2787 2784
2788@kbd{M-x auto-revert-tail-mode} runs similarly showing continuous output. 2785@kbd{M-x auto-revert-tail-mode @key{RET}} runs similarly showing
2786continuous output.
2789 2787
2790 2788
2791@subsection Running @code{eshell} on a remote host 2789@subsection Running @code{eshell} on a remote host
@@ -2794,8 +2792,8 @@ host. Example:
2794@value{tramp} is integrated into @file{eshell.el}, which enables 2792@value{tramp} is integrated into @file{eshell.el}, which enables
2795interactive eshell sessions on remote hosts at the command prompt. 2793interactive eshell sessions on remote hosts at the command prompt.
2796You must add the module @code{em-tramp} to @code{eshell-modules-list}. 2794You must add the module @code{em-tramp} to @code{eshell-modules-list}.
2797Here's a sample interaction after opening @kbd{M-x eshell} on a remote 2795Here's a sample interaction after opening @kbd{M-x eshell @key{RET}}
2798host: 2796on a remote host:
2799 2797
2800@example 2798@example
2801@group 2799@group
@@ -2876,7 +2874,7 @@ calls include:
2876@end group 2874@end group
2877@end example 2875@end example
2878 2876
2879Just the local part of a remote file name, such as @kbd{perl -d 2877Just the local part of a remote file name, such as @command{perl -d
2880/home/user/myprog.pl}, is not possible. 2878/home/user/myprog.pl}, is not possible.
2881 2879
2882Arguments of the program to be debugged must be literal, can take 2880Arguments of the program to be debugged must be literal, can take
@@ -2896,8 +2894,8 @@ command. Powershell V2.0 on the remote host is required to run
2896processes triggered from @value{tramp}. 2894processes triggered from @value{tramp}.
2897 2895
2898@option{explicit-shell-file-name} and @option{explicit-*-args} have to 2896@option{explicit-shell-file-name} and @option{explicit-*-args} have to
2899be set properly so @kbd{M-x shell} can open a proper remote shell on a 2897be set properly so @kbd{M-x shell @key{RET}} can open a proper remote
2900MS Windows host. To open @command{cmd}, set it as follows: 2898shell on a MS Windows host. To open @command{cmd}, set it as follows:
2901 2899
2902@lisp 2900@lisp
2903@group 2901@group
@@ -3189,9 +3187,9 @@ Before sending a bug report, run the test suite first @ref{Testing}.
3189Check if the bug or problem is already addressed in @xref{Frequently 3187Check if the bug or problem is already addressed in @xref{Frequently
3190Asked Questions}. 3188Asked Questions}.
3191 3189
3192Run @kbd{M-x tramp-bug} to generate a buffer with details of the 3190Run @kbd{M-x tramp-bug @key{RET}} to generate a buffer with details of
3193system along with the details of the @value{tramp} 3191the system along with the details of the @value{tramp} installation.
3194installation. Please include these details with the bug report. 3192Please include these details with the bug report.
3195 3193
3196The bug report must describe in as excruciating detail as possible the 3194The bug report must describe in as excruciating detail as possible the
3197steps required to reproduce the problem. These details must include 3195steps required to reproduce the problem. These details must include
@@ -3317,7 +3315,7 @@ put the cursor at the top of the buffer, and then apply the following
3317expression: 3315expression:
3318 3316
3319@example 3317@example
3320@kbd{M-: (re-search-forward (concat tramp-shell-prompt-pattern "$"))} 3318@kbd{M-: (re-search-forward (concat tramp-shell-prompt-pattern "$")) @key{RET}}
3321@end example 3319@end example
3322 3320
3323If the cursor has not moved to the prompt at the bottom of the buffer, 3321If the cursor has not moved to the prompt at the bottom of the buffer,
@@ -3521,9 +3519,10 @@ the following code in @file{~/.emacs} file.
3521How to get a Visual Warning when working with @samp{root} privileges? 3519How to get a Visual Warning when working with @samp{root} privileges?
3522Host indication in the mode line? 3520Host indication in the mode line?
3523 3521
3522@cindex @value{tramp} theme
3524@vindex tramp-theme-face-remapping-alist 3523@vindex tramp-theme-face-remapping-alist
3525Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager. 3524Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager.
3526Enable it via @kbd{M-x load-theme @key{RET} tramp}. Further 3525Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further
3527customization is explained in user option 3526customization is explained in user option
3528@option{tramp-theme-face-remapping-alist}. 3527@option{tramp-theme-face-remapping-alist}.
3529 3528
@@ -3598,6 +3597,24 @@ is @file{@trampfn{ssh,news@@news.my.domain,/opt/news/etc}}, then:
3598@enumerate 3597@enumerate
3599 3598
3600@item 3599@item
3600Use simplified syntax:
3601
3602If you always apply the default method (@pxref{Default Method}), you
3603could use the simplified @value{tramp} syntax (@pxref{Change file name
3604syntax}):
3605
3606@lisp
3607@group
3608(customize-set-variable 'tramp-default-method "ssh")
3609(tramp-change-syntax 'simplified)
3610@end group
3611@end lisp
3612
3613The reduced typing: @kbd{C-x C-f
3614@code{@value{prefix}news@@news.my.domain@value{postfix}/opt/news/etc}
3615@key{RET}}.
3616
3617@item
3601Use default values for method name and user name: 3618Use default values for method name and user name:
3602 3619
3603You can define default methods and user names for hosts, 3620You can define default methods and user names for hosts,
@@ -3611,11 +3628,12 @@ You can define default methods and user names for hosts,
3611@end group 3628@end group
3612@end lisp 3629@end lisp
3613 3630
3614The reduced typing: @kbd{C-x C-f @trampfn{-,news.my.domain,/opt/news/etc}}. 3631The reduced typing: @kbd{C-x C-f
3632@trampfn{-,news.my.domain,/opt/news/etc} @key{RET}}.
3615 3633
3616@strong{Note} that there are some useful shortcuts already. Accessing 3634@strong{Note} that there are some useful shortcuts already. Accessing
3617your local host as @samp{root} user, is possible just by @kbd{C-x C-f 3635your local host as @samp{root} user, is possible just by @kbd{C-x C-f
3618@trampfn{su,,}}. 3636@trampfn{su,,} @key{RET}}.
3619 3637
3620@item 3638@item
3621Use configuration options of the access method: 3639Use configuration options of the access method:
@@ -3632,7 +3650,7 @@ Host xy
3632@end group 3650@end group
3633@end example 3651@end example
3634 3652
3635The reduced typing: @kbd{C-x C-f @trampfn{ssh,xy,/opt/news/etc}}. 3653The reduced typing: @kbd{C-x C-f @trampfn{ssh,xy,/opt/news/etc} @key{RET}}.
3636 3654
3637Depending on the number of files in the directories, host names 3655Depending on the number of files in the directories, host names
3638completion can further reduce key strokes: @kbd{C-x C-f 3656completion can further reduce key strokes: @kbd{C-x C-f
@@ -3800,8 +3818,8 @@ Load @file{bbdb} in Emacs:
3800@end group 3818@end group
3801@end lisp 3819@end lisp
3802 3820
3803Create a BBDB entry with @kbd{M-x bbdb-create-ftp-site}. Then specify 3821Create a BBDB entry with @kbd{M-x bbdb-create-ftp-site @key{RET}}.
3804a method and user name where needed. Examples: 3822Then specify a method and user name where needed. Examples:
3805 3823
3806@example 3824@example
3807@group 3825@group
@@ -3937,8 +3955,8 @@ To disable both @value{tramp} (and Ange FTP), set @code{tramp-mode} to
3937@end lisp 3955@end lisp
3938 3956
3939@item 3957@item
3940To unload @value{tramp}, type @kbd{M-x tramp-unload-tramp}. Unloading 3958To unload @value{tramp}, type @kbd{M-x tramp-unload-tramp @key{RET}}.
3941@value{tramp} resets Ange FTP plugins also. 3959Unloading @value{tramp} resets Ange FTP plugins also.
3942@end itemize 3960@end itemize
3943@end itemize 3961@end itemize
3944 3962