aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2018-05-29 12:42:17 +0200
committerMichael Albinus2018-05-29 12:42:17 +0200
commit13963a3a5c83aff1eacee933361e3ac0f21828cd (patch)
tree74c4561462b9053478550a8381ec263c1dacb4d9 /doc/misc
parent6e5f19ada410a176eb36b0742fe45b3f5c80b710 (diff)
downloademacs-13963a3a5c83aff1eacee933361e3ac0f21828cd.tar.gz
emacs-13963a3a5c83aff1eacee933361e3ac0f21828cd.zip
* doc/misc/tramp.texi (All): Use @code instead of @option for user options.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi110
1 files changed, 55 insertions, 55 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 2960368447e..4e75b9a8f04 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -671,7 +671,7 @@ remote host, and then tries that program for encoding and decoding.
671@vindex tramp-inline-compress-start-size 671@vindex tramp-inline-compress-start-size
672To increase transfer speeds for large text files, use compression 672To increase transfer speeds for large text files, use compression
673before encoding. The user option 673before encoding. The user option
674@option{tramp-inline-compress-start-size} specifies the file size for 674@code{tramp-inline-compress-start-size} specifies the file size for
675such optimization. 675such optimization.
676 676
677@table @asis 677@table @asis
@@ -1027,11 +1027,11 @@ devices. The Android Debug Bridge must be installed locally for
1027Debug Bridge as an installation package. Alternatively, the program 1027Debug Bridge as an installation package. Alternatively, the program
1028is installed as part of the Android SDK@. @value{tramp} finds the 1028is installed as part of the Android SDK@. @value{tramp} finds the
1029@command{adb} program either via the @env{PATH} environment variable 1029@command{adb} program either via the @env{PATH} environment variable
1030or the absolute path set in the user option @option{tramp-adb-program}. 1030or the absolute path set in the user option @code{tramp-adb-program}.
1031 1031
1032@vindex tramp-adb-connect-if-not-connected 1032@vindex tramp-adb-connect-if-not-connected
1033@value{tramp} connects to Android devices with @option{adb} only when 1033@value{tramp} connects to Android devices with @option{adb} only when
1034the user option @option{tramp-adb-connect-if-not-connected} is not 1034the user option @code{tramp-adb-connect-if-not-connected} is not
1035@code{nil}. Otherwise, the connection must be established outside 1035@code{nil}. Otherwise, the connection must be established outside
1036Emacs. 1036Emacs.
1037 1037
@@ -1149,7 +1149,7 @@ pseudo method @option{-}, @ref{File name syntax}.
1149 1149
1150@defopt tramp-default-method 1150@defopt tramp-default-method
1151Default method is for transferring files. The user option 1151Default method is for transferring files. The user option
1152@option{tramp-default-method} sets it. @value{tramp} uses this user 1152@code{tramp-default-method} sets it. @value{tramp} uses this user
1153option to determine the default method for remote file names that do 1153option to determine the default method for remote file names that do
1154not have one specified. 1154not have one specified.
1155 1155
@@ -1161,7 +1161,7 @@ not have one specified.
1161@defopt tramp-default-method-alist 1161@defopt tramp-default-method-alist
1162Default methods for transferring files can be customized for specific 1162Default methods for transferring files can be customized for specific
1163user and host combinations through the user option 1163user and host combinations through the user option
1164@option{tramp-default-method-alist}. 1164@code{tramp-default-method-alist}.
1165 1165
1166For example, the following two lines specify to use the @option{ssh} 1166For example, the following two lines specify to use the @option{ssh}
1167method for all user names matching @samp{john} and the @option{rsync} 1167method for all user names matching @samp{john} and the @option{rsync}
@@ -1237,7 +1237,7 @@ improvement is not always true.
1237@defopt tramp-default-user 1237@defopt tramp-default-user
1238@value{tramp} file name can omit the user name part since 1238@value{tramp} file name can omit the user name part since
1239@value{tramp} substitutes the currently logged-in user name. However 1239@value{tramp} substitutes the currently logged-in user name. However
1240this substitution can be overridden with @option{tramp-default-user}. 1240this substitution can be overridden with @code{tramp-default-user}.
1241For example: 1241For example:
1242 1242
1243@lisp 1243@lisp
@@ -1246,7 +1246,7 @@ For example:
1246@end defopt 1246@end defopt
1247 1247
1248@defopt tramp-default-user-alist 1248@defopt tramp-default-user-alist
1249Instead of a single default user, @option{tramp-default-user-alist} 1249Instead of a single default user, @code{tramp-default-user-alist}
1250allows multiple default user values based on access method or host 1250allows multiple default user values based on access method or host
1251name combinations. The alist can hold multiple values. For example, to 1251name combinations. The alist can hold multiple values. For example, to
1252use the @samp{john} as the default user for the domain 1252use the @samp{john} as the default user for the domain
@@ -1271,7 +1271,7 @@ corresponding alist entry to nil:
1271@end group 1271@end group
1272@end lisp 1272@end lisp
1273 1273
1274The last entry in @option{tramp-default-user-alist} should be reserved 1274The last entry in @code{tramp-default-user-alist} should be reserved
1275for catch-all or most often used login. 1275for catch-all or most often used login.
1276 1276
1277@lisp 1277@lisp
@@ -1289,7 +1289,7 @@ for catch-all or most often used login.
1289 1289
1290@defopt tramp-default-host 1290@defopt tramp-default-host
1291When host name is omitted, @value{tramp} substitutes the value from 1291When host name is omitted, @value{tramp} substitutes the value from
1292the @option{tramp-default-host} user option. It is initially 1292the @code{tramp-default-host} user option. It is initially
1293populated with the local host name where Emacs is running. The 1293populated with the local host name where Emacs is running. The
1294default method, default user and default host can be overridden as 1294default method, default user and default host can be overridden as
1295follows: 1295follows:
@@ -1308,10 +1308,10 @@ to John's home directory on @code{target} via @code{ssh}.
1308@end defopt 1308@end defopt
1309 1309
1310@defopt tramp-default-host-alist 1310@defopt tramp-default-host-alist
1311Instead of a single default host, @option{tramp-default-host-alist} 1311Instead of a single default host, @code{tramp-default-host-alist}
1312allows multiple default host values based on access method or user 1312allows multiple default host values based on access method or user
1313name combinations. The alist can hold multiple values. While 1313name combinations. The alist can hold multiple values. While
1314@option{tramp-default-host} is sufficient in most cases, some methods, 1314@code{tramp-default-host} is sufficient in most cases, some methods,
1315like @option{adb}, require defaults overwritten. 1315like @option{adb}, require defaults overwritten.
1316@end defopt 1316@end defopt
1317 1317
@@ -1329,7 +1329,7 @@ hop kind, where the start and end points of the connection did not
1329have intermediate check points. 1329have intermediate check points.
1330 1330
1331@defopt tramp-default-proxies-alist 1331@defopt tramp-default-proxies-alist
1332@option{tramp-default-proxies-alist} specifies proxy hosts to pass 1332@code{tramp-default-proxies-alist} specifies proxy hosts to pass
1333through. This user option is list of triples consisting of 1333through. This user option is list of triples consisting of
1334@code{(@var{host} @var{user} @var{proxy})}. 1334@code{(@var{host} @var{user} @var{proxy})}.
1335 1335
@@ -1683,16 +1683,16 @@ Set @code{password-cache} to @code{nil} to disable password caching.
1683@vindex tramp-persistency-file-name 1683@vindex tramp-persistency-file-name
1684For faster initial connection times, @value{tramp} stores previous 1684For faster initial connection times, @value{tramp} stores previous
1685connection properties in a file specified by the user option 1685connection properties in a file specified by the user option
1686@option{tramp-persistency-file-name}. 1686@code{tramp-persistency-file-name}.
1687 1687
1688The default file name for @option{tramp-persistency-file-name} is 1688The default file name for @code{tramp-persistency-file-name} is
1689@file{~/.emacs.d/tramp}. 1689@file{~/.emacs.d/tramp}.
1690 1690
1691@value{tramp} reads this file during Emacs startup, and writes to it 1691@value{tramp} reads this file during Emacs startup, and writes to it
1692when exiting Emacs. Delete this file for @value{tramp} to recreate a 1692when exiting Emacs. Delete this file for @value{tramp} to recreate a
1693new one on next Emacs startup. 1693new one on next Emacs startup.
1694 1694
1695Set @option{tramp-persistency-file-name} to @code{nil} to disable 1695Set @code{tramp-persistency-file-name} to @code{nil} to disable
1696storing connections persistently. 1696storing connections persistently.
1697 1697
1698When @value{tramp} detects a change in the operating system version in 1698When @value{tramp} detects a change in the operating system version in
@@ -1707,7 +1707,7 @@ For more precise customization, parameters specified by
1707@code{tramp-methods} can be overwritten manually. 1707@code{tramp-methods} can be overwritten manually.
1708 1708
1709@vindex tramp-connection-properties 1709@vindex tramp-connection-properties
1710Set @option{tramp-connection-properties} to manually override 1710Set @code{tramp-connection-properties} to manually override
1711@code{tramp-methods}. Properties in this list are in the form 1711@code{tramp-methods}. Properties in this list are in the form
1712@code{(@var{regexp} @var{property} @var{value})}. @var{regexp} 1712@code{(@var{regexp} @var{property} @var{value})}. @var{regexp}
1713matches remote file names. Use @code{nil} to match all. 1713matches remote file names. Use @code{nil} to match all.
@@ -1739,7 +1739,7 @@ The parameters @code{tramp-remote-shell} and
1739values for the remote host. 1739values for the remote host.
1740 1740
1741@var{property} could also be any property found in 1741@var{property} could also be any property found in
1742@option{tramp-persistency-file-name}. 1742@code{tramp-persistency-file-name}.
1743 1743
1744To get around how restricted shells randomly drop connections, set the 1744To get around how restricted shells randomly drop connections, set the
1745special property @samp{busybox}. For example: 1745special property @samp{busybox}. For example:
@@ -1768,7 +1768,7 @@ To improve performance and accuracy of remote file access,
1768@command{grep} when available. 1768@command{grep} when available.
1769 1769
1770@defopt tramp-remote-path 1770@defopt tramp-remote-path
1771@option{tramp-remote-path} specifies which remote directory paths 1771@code{tramp-remote-path} specifies which remote directory paths
1772@value{tramp} can search for @ref{Remote programs}. 1772@value{tramp} can search for @ref{Remote programs}.
1773 1773
1774@vindex tramp-default-remote-path 1774@vindex tramp-default-remote-path
@@ -1793,7 +1793,7 @@ Another way to find the remote path is to use the path assigned to the
1793remote user by the remote host. @value{tramp} does not normally retain 1793remote user by the remote host. @value{tramp} does not normally retain
1794this remote path after login. However, @code{tramp-own-remote-path} 1794this remote path after login. However, @code{tramp-own-remote-path}
1795preserves the path value, which can be used to update 1795preserves the path value, which can be used to update
1796@option{tramp-remote-path}. 1796@code{tramp-remote-path}.
1797 1797
1798@lisp 1798@lisp
1799(add-to-list 'tramp-remote-path 'tramp-own-remote-path) 1799(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
@@ -1837,22 +1837,22 @@ login security, especially not the exotic ones. However, @value{tramp}
1837provides a few tweaks to address the most common ones. 1837provides a few tweaks to address the most common ones.
1838 1838
1839@table @asis 1839@table @asis
1840@item @option{tramp-shell-prompt-pattern} 1840@item @code{tramp-shell-prompt-pattern}
1841@vindex tramp-shell-prompt-pattern 1841@vindex tramp-shell-prompt-pattern
1842 1842
1843@option{tramp-shell-prompt-pattern} is for remote login shell prompt, 1843@code{tramp-shell-prompt-pattern} is for remote login shell prompt,
1844which may not be the same as the local login shell prompt, 1844which may not be the same as the local login shell prompt,
1845@code{shell-prompt-pattern}. Since most hosts use identical prompts, 1845@code{shell-prompt-pattern}. Since most hosts use identical prompts,
1846@value{tramp} sets a similar default value for both prompts. 1846@value{tramp} sets a similar default value for both prompts.
1847 1847
1848@item @option{tramp-password-prompt-regexp} 1848@item @code{tramp-password-prompt-regexp}
1849@item @option{tramp-wrong-passwd-regexp} 1849@item @code{tramp-wrong-passwd-regexp}
1850@vindex tramp-password-prompt-regexp 1850@vindex tramp-password-prompt-regexp
1851@vindex tramp-wrong-passwd-regexp 1851@vindex tramp-wrong-passwd-regexp
1852 1852
1853@value{tramp} uses @option{tramp-password-prompt-regexp} to 1853@value{tramp} uses @code{tramp-password-prompt-regexp} to
1854distinguish between prompts for passwords and prompts for passphrases. 1854distinguish between prompts for passwords and prompts for passphrases.
1855By default, @option{tramp-password-prompt-regexp} handles the 1855By default, @code{tramp-password-prompt-regexp} handles the
1856detection in English language environments. See a localization 1856detection in English language environments. See a localization
1857example below: 1857example below:
1858 1858
@@ -1876,7 +1876,7 @@ example below:
1876@end lisp 1876@end lisp
1877 1877
1878Similar localization may be necessary for handling wrong password 1878Similar localization may be necessary for handling wrong password
1879prompts, for which @value{tramp} uses @option{tramp-wrong-passwd-regexp}. 1879prompts, for which @value{tramp} uses @code{tramp-wrong-passwd-regexp}.
1880 1880
1881@item @code{tramp-terminal-type} 1881@item @code{tramp-terminal-type}
1882@vindex tramp-terminal-type 1882@vindex tramp-terminal-type
@@ -1934,7 +1934,7 @@ echo $INSIDE_EMACS
1934 1934
1935To suppress inappropriate prompts for terminal type, @value{tramp} 1935To suppress inappropriate prompts for terminal type, @value{tramp}
1936sets the @env{TERM} environment variable before the remote login 1936sets the @env{TERM} environment variable before the remote login
1937process begins via the user option @option{tramp-terminal-type} (see 1937process begins via the user option @code{tramp-terminal-type} (see
1938above). This will silence common @command{tset} related prompts. 1938above). This will silence common @command{tset} related prompts.
1939 1939
1940@value{tramp}'s strategy for handling such prompts (commonly triggered 1940@value{tramp}'s strategy for handling such prompts (commonly triggered
@@ -2168,7 +2168,7 @@ Open a remote connection with a more concise command @kbd{C-x C-f
2168@vindex backup-directory-alist 2168@vindex backup-directory-alist
2169To avoid @value{tramp} from saving backup files owned by @samp{root} 2169To avoid @value{tramp} from saving backup files owned by @samp{root}
2170to locations accessible to others, default backup settings in 2170to locations accessible to others, default backup settings in
2171@option{backup-directory-alist} have to be altered. 2171@code{backup-directory-alist} have to be altered.
2172 2172
2173Here's a scenario where files could be inadvertently exposed. Emacs 2173Here's a scenario where files could be inadvertently exposed. Emacs
2174by default writes backup files to the same directory as the original 2174by default writes backup files to the same directory as the original
@@ -2179,7 +2179,7 @@ default by @value{tramp} when using, say, a restricted file
2179of the secretfile is now owned by the user logged in from 2179of the secretfile is now owned by the user logged in from
2180@value{tramp} and not @samp{root}. 2180@value{tramp} and not @samp{root}.
2181 2181
2182When @option{backup-directory-alist} is @code{nil} (the default), such 2182When @code{backup-directory-alist} is @code{nil} (the default), such
2183problems do not occur. 2183problems do not occur.
2184 2184
2185To ``turn off'' the backup feature for @value{tramp} files and stop 2185To ``turn off'' the backup feature for @value{tramp} files and stop
@@ -2213,8 +2213,8 @@ Another option is to create better backup file naming with user and
2213host names prefixed to the file name. For example, transforming 2213host names prefixed to the file name. For example, transforming
2214@file{/etc/secretfile} to 2214@file{/etc/secretfile} to
2215@file{~/.emacs.d/backups/!su:root@@localhost:!etc!secretfile}, set the 2215@file{~/.emacs.d/backups/!su:root@@localhost:!etc!secretfile}, set the
2216@value{tramp} user option @option{tramp-backup-directory-alist} from 2216@value{tramp} user option @code{tramp-backup-directory-alist} from
2217the existing user option @option{backup-directory-alist}. 2217the existing user option @code{backup-directory-alist}.
2218 2218
2219Then @value{tramp} backs up to a file name that is transformed with a 2219Then @value{tramp} backs up to a file name that is transformed with a
2220prefix consisting of the DIRECTORY name. This file name prefixing 2220prefix consisting of the DIRECTORY name. This file name prefixing
@@ -2246,16 +2246,16 @@ The backup file name of
2246Just as for backup files, similar issues of file naming affect 2246Just as for backup files, similar issues of file naming affect
2247auto-saving @value{tramp} files. Auto-saved files are saved in the 2247auto-saving @value{tramp} files. Auto-saved files are saved in the
2248directory specified by the user option 2248directory specified by the user option
2249@option{auto-save-file-name-transforms}. By default this is set to 2249@code{auto-save-file-name-transforms}. By default this is set to
2250the local temporary directory. But in some versions of Debian 2250the local temporary directory. But in some versions of Debian
2251GNU/Linux, this points to the source directory where the Emacs was 2251GNU/Linux, this points to the source directory where the Emacs was
2252compiled. Reset such values to a valid directory. 2252compiled. Reset such values to a valid directory.
2253 2253
2254Set @option{auto-save-file-name-transforms} to @code{nil} to save 2254Set @code{auto-save-file-name-transforms} to @code{nil} to save
2255auto-saved files to the same directory as the original file. 2255auto-saved files to the same directory as the original file.
2256 2256
2257@vindex tramp-auto-save-directory 2257@vindex tramp-auto-save-directory
2258Alternatively, set the user option @option{tramp-auto-save-directory} 2258Alternatively, set the user option @code{tramp-auto-save-directory}
2259to direct all auto saves to that location. 2259to direct all auto saves to that location.
2260 2260
2261@node Windows setup hints 2261@node Windows setup hints
@@ -2577,7 +2577,7 @@ directory contents.
2577@cindex proxy hosts, ad-hoc 2577@cindex proxy hosts, ad-hoc
2578 2578
2579@value{tramp} file name syntax can accommodate ad hoc specification of 2579@value{tramp} file name syntax can accommodate ad hoc specification of
2580multiple proxies without using @option{tramp-default-proxies-alist} 2580multiple proxies without using @code{tramp-default-proxies-alist}
2581configuration setup(@pxref{Multi-hops}). 2581configuration setup(@pxref{Multi-hops}).
2582 2582
2583Each proxy is specified using the same syntax as the remote host 2583Each proxy is specified using the same syntax as the remote host
@@ -2594,15 +2594,15 @@ proxy @samp{bird@@bastion} to a remote file on @samp{you@@remotehost}:
2594Proxies can take patterns @code{%h} or @code{%u}. 2594Proxies can take patterns @code{%h} or @code{%u}.
2595 2595
2596@value{tramp} adds the ad-hoc definitions on the fly to 2596@value{tramp} adds the ad-hoc definitions on the fly to
2597@option{tramp-default-proxies-alist} and is available for re-use 2597@code{tramp-default-proxies-alist} and is available for re-use
2598during that Emacs session. Subsequent @value{tramp} connections to 2598during that Emacs session. Subsequent @value{tramp} connections to
2599the same remote host can then use the shortcut form: 2599the same remote host can then use the shortcut form:
2600@samp{@trampfn{ssh,you@@remotehost,/path}}. 2600@samp{@trampfn{ssh,you@@remotehost,/path}}.
2601 2601
2602@defopt tramp-save-ad-hoc-proxies 2602@defopt tramp-save-ad-hoc-proxies
2603For ad-hoc definitions to be saved automatically in 2603For ad-hoc definitions to be saved automatically in
2604@option{tramp-default-proxies-alist} for future Emacs sessions, set 2604@code{tramp-default-proxies-alist} for future Emacs sessions, set
2605@option{tramp-save-ad-hoc-proxies} to non-@code{nil}. 2605@code{tramp-save-ad-hoc-proxies} to non-@code{nil}.
2606 2606
2607@lisp 2607@lisp
2608(customize-set-variable 'tramp-save-ad-hoc-proxies t) 2608(customize-set-variable 'tramp-save-ad-hoc-proxies t)
@@ -2647,7 +2647,7 @@ like @code{compile} and @code{grep}) and @file{gud.el} (@code{gdb} or
2647For @value{tramp} to find the command on the remote, it must be 2647For @value{tramp} to find the command on the remote, it must be
2648accessible through the default search path as setup by @value{tramp} 2648accessible through the default search path as setup by @value{tramp}
2649upon first connection. Alternatively, use an absolute path or extend 2649upon first connection. Alternatively, use an absolute path or extend
2650@option{tramp-remote-path} (see @ref{Remote programs}): 2650@code{tramp-remote-path} (see @ref{Remote programs}):
2651 2651
2652@lisp 2652@lisp
2653@group 2653@group
@@ -2657,9 +2657,9 @@ upon first connection. Alternatively, use an absolute path or extend
2657@end lisp 2657@end lisp
2658 2658
2659@vindex tramp-remote-process-environment 2659@vindex tramp-remote-process-environment
2660Customize user option @option{tramp-remote-process-environment} to 2660Customize user option @code{tramp-remote-process-environment} to
2661suit the remote program's environment for the remote host. 2661suit the remote program's environment for the remote host.
2662@option{tramp-remote-process-environment} is a list of strings 2662@code{tramp-remote-process-environment} is a list of strings
2663structured similar to @code{process-environment}, where each element 2663structured similar to @code{process-environment}, where each element
2664is a string of the form @samp{ENVVARNAME=VALUE}. 2664is a string of the form @samp{ENVVARNAME=VALUE}.
2665 2665
@@ -2676,11 +2676,11 @@ Use @code{add-to-list} to add entries:
2676 2676
2677@vindex HISTORY@r{, environment variable} 2677@vindex HISTORY@r{, environment variable}
2678Modifying or deleting already existing values in the 2678Modifying or deleting already existing values in the
2679@option{tramp-remote-process-environment} list may not be feasible on 2679@code{tramp-remote-process-environment} list may not be feasible on
2680restricted remote hosts. For example, some system administrators 2680restricted remote hosts. For example, some system administrators
2681disallow changing @env{HISTORY} environment variable. To accommodate 2681disallow changing @env{HISTORY} environment variable. To accommodate
2682such restrictions when using @value{tramp}, fix the 2682such restrictions when using @value{tramp}, fix the
2683@option{tramp-remote-process-environment} by the following code in the 2683@code{tramp-remote-process-environment} by the following code in the
2684local @file{.emacs} file: 2684local @file{.emacs} file:
2685 2685
2686@lisp 2686@lisp
@@ -2704,12 +2704,12 @@ this. You could overwrite this behavior by evaluating
2704@end group 2704@end group
2705@end lisp 2705@end lisp
2706 2706
2707In addition to @option{tramp-remote-process-environment}, you can set 2707In addition to @code{tramp-remote-process-environment}, you can set
2708environment variables for individual remote process calls by 2708environment variables for individual remote process calls by
2709let-binding @code{process-environment}. @value{tramp} applies any 2709let-binding @code{process-environment}. @value{tramp} applies any
2710entries not present in the global default value of 2710entries not present in the global default value of
2711@code{process-environment} (overriding 2711@code{process-environment} (overriding
2712@option{tramp-remote-process-environment} settings, if they conflict). 2712@code{tramp-remote-process-environment} settings, if they conflict).
2713For example: 2713For example:
2714 2714
2715@lisp 2715@lisp
@@ -2759,16 +2759,16 @@ local host.
2759@subsection Running @code{shell} on a remote host 2759@subsection Running @code{shell} on a remote host
2760@cindex @code{shell} 2760@cindex @code{shell}
2761 2761
2762Set @option{explicit-shell-file-name} to the appropriate shell name 2762Set @code{explicit-shell-file-name} to the appropriate shell name
2763when using @value{tramp} between two hosts with different operating 2763when using @value{tramp} between two hosts with different operating
2764systems, such as @samp{windows-nt} and @samp{gnu/linux}. This option 2764systems, such as @samp{windows-nt} and @samp{gnu/linux}. This option
2765ensures the correct name of the remote shell program. 2765ensures the correct name of the remote shell program.
2766 2766
2767When @option{explicit-shell-file-name} is equal to @code{nil}, calling 2767When @code{explicit-shell-file-name} is equal to @code{nil}, calling
2768@code{shell} interactively will prompt for a shell name. 2768@code{shell} interactively will prompt for a shell name.
2769 2769
2770Starting with Emacs 26, you could use connection-local variables for 2770Starting with Emacs 26, you could use connection-local variables for
2771setting different values of @option{explicit-shell-file-name} for 2771setting different values of @code{explicit-shell-file-name} for
2772different remote hosts. 2772different remote hosts.
2773@ifinfo 2773@ifinfo
2774@pxref{Connection Local Variables, , , elisp} 2774@pxref{Connection Local Variables, , , elisp}
@@ -2849,7 +2849,7 @@ uid=0(root) gid=0(root) groups=0(root)
2849 2849
2850@code{eshell} added custom @code{su} and @code{sudo} commands that set 2850@code{eshell} added custom @code{su} and @code{sudo} commands that set
2851the default directory correctly for the @file{*eshell*} buffer. 2851the default directory correctly for the @file{*eshell*} buffer.
2852@value{tramp} silently updates @option{tramp-default-proxies-alist} 2852@value{tramp} silently updates @code{tramp-default-proxies-alist}
2853with an entry for this directory (@pxref{Multi-hops}): 2853with an entry for this directory (@pxref{Multi-hops}):
2854 2854
2855@example 2855@example
@@ -2932,7 +2932,7 @@ relative or absolute paths, but not remote paths.
2932command. Powershell V2.0 on the remote host is required to run 2932command. Powershell V2.0 on the remote host is required to run
2933processes triggered from @value{tramp}. 2933processes triggered from @value{tramp}.
2934 2934
2935@option{explicit-shell-file-name} and @option{explicit-*-args} have to 2935@code{explicit-shell-file-name} and @code{explicit-*-args} have to
2936be set properly so @kbd{M-x shell @key{RET}} can open a proper remote 2936be set properly so @kbd{M-x shell @key{RET}} can open a proper remote
2937shell on a MS Windows host. To open @command{cmd}, set it as follows: 2937shell on a MS Windows host. To open @command{cmd}, set it as follows:
2938 2938
@@ -3090,7 +3090,7 @@ responsiveness slows down. Some suggestions within the scope of
3090Use an external method, such as @option{scp}, which are faster than 3090Use an external method, such as @option{scp}, which are faster than
3091internal methods. 3091internal methods.
3092 3092
3093Keep the file @option{tramp-persistency-file-name}, which is where 3093Keep the file @code{tramp-persistency-file-name}, which is where
3094@value{tramp} caches remote information about hosts and files. Caching 3094@value{tramp} caches remote information about hosts and files. Caching
3095is enabled by default. Don't disable it. 3095is enabled by default. Don't disable it.
3096 3096
@@ -3099,7 +3099,7 @@ files are not independently updated outside @value{tramp}'s control.
3099That cache cleanup will be necessary if the remote directories or 3099That cache cleanup will be necessary if the remote directories or
3100files are updated independent of @value{tramp}. 3100files are updated independent of @value{tramp}.
3101 3101
3102Set @option{tramp-completion-reread-directory-timeout} to @code{nil} to 3102Set @code{tramp-completion-reread-directory-timeout} to @code{nil} to
3103speed up completions, @ref{File name completion}. 3103speed up completions, @ref{File name completion}.
3104 3104
3105Disable version control to avoid delays: 3105Disable version control to avoid delays:
@@ -3354,7 +3354,7 @@ Host indication in the mode line?
3354Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager. 3354Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager.
3355Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further 3355Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further
3356customization is explained in user option 3356customization is explained in user option
3357@option{tramp-theme-face-remapping-alist}. 3357@code{tramp-theme-face-remapping-alist}.
3358 3358
3359 3359
3360@item 3360@item
@@ -3385,7 +3385,7 @@ Why is @file{~/.sh_history} file on the remote host growing?
3385Due to the remote shell saving tilde expansions triggered by 3385Due to the remote shell saving tilde expansions triggered by
3386@value{tramp}, the history file is probably growing rapidly. 3386@value{tramp}, the history file is probably growing rapidly.
3387@value{tramp} can suppress this behavior with the user option 3387@value{tramp} can suppress this behavior with the user option
3388@option{tramp-histfile-override}. When set to @code{t}, environment 3388@code{tramp-histfile-override}. When set to @code{t}, environment
3389variable @env{HISTFILE} is unset, and environment variables 3389variable @env{HISTFILE} is unset, and environment variables
3390@env{HISTFILESIZE} @env{HISTSIZE} are set to 0. 3390@env{HISTFILESIZE} @env{HISTSIZE} are set to 0.
3391 3391
@@ -3681,7 +3681,7 @@ package, use the full ad-hoc file name including all hops, like
3681 3681
3682Alternatively, when saving abbreviated multi-hop file names 3682Alternatively, when saving abbreviated multi-hop file names
3683@file{@trampfn{ssh,news@@news.my.domain,/opt/news/etc}}, the user 3683@file{@trampfn{ssh,news@@news.my.domain,/opt/news/etc}}, the user
3684option @option{tramp-save-ad-hoc-proxies} must be set non-@code{nil} 3684option @code{tramp-save-ad-hoc-proxies} must be set non-@code{nil}
3685value. 3685value.
3686 3686
3687 3687