diff options
| author | Michael Albinus | 2018-05-29 12:42:17 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-05-29 12:42:17 +0200 |
| commit | 13963a3a5c83aff1eacee933361e3ac0f21828cd (patch) | |
| tree | 74c4561462b9053478550a8381ec263c1dacb4d9 /doc/misc | |
| parent | 6e5f19ada410a176eb36b0742fe45b3f5c80b710 (diff) | |
| download | emacs-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.texi | 110 |
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 |
| 672 | To increase transfer speeds for large text files, use compression | 672 | To increase transfer speeds for large text files, use compression |
| 673 | before encoding. The user option | 673 | before 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 |
| 675 | such optimization. | 675 | such optimization. |
| 676 | 676 | ||
| 677 | @table @asis | 677 | @table @asis |
| @@ -1027,11 +1027,11 @@ devices. The Android Debug Bridge must be installed locally for | |||
| 1027 | Debug Bridge as an installation package. Alternatively, the program | 1027 | Debug Bridge as an installation package. Alternatively, the program |
| 1028 | is installed as part of the Android SDK@. @value{tramp} finds the | 1028 | is 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 |
| 1030 | or the absolute path set in the user option @option{tramp-adb-program}. | 1030 | or 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 |
| 1034 | the user option @option{tramp-adb-connect-if-not-connected} is not | 1034 | the 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 |
| 1036 | Emacs. | 1036 | Emacs. |
| 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 |
| 1151 | Default method is for transferring files. The user option | 1151 | Default 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 |
| 1153 | option to determine the default method for remote file names that do | 1153 | option to determine the default method for remote file names that do |
| 1154 | not have one specified. | 1154 | not 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 |
| 1162 | Default methods for transferring files can be customized for specific | 1162 | Default methods for transferring files can be customized for specific |
| 1163 | user and host combinations through the user option | 1163 | user and host combinations through the user option |
| 1164 | @option{tramp-default-method-alist}. | 1164 | @code{tramp-default-method-alist}. |
| 1165 | 1165 | ||
| 1166 | For example, the following two lines specify to use the @option{ssh} | 1166 | For example, the following two lines specify to use the @option{ssh} |
| 1167 | method for all user names matching @samp{john} and the @option{rsync} | 1167 | method 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 |
| 1240 | this substitution can be overridden with @option{tramp-default-user}. | 1240 | this substitution can be overridden with @code{tramp-default-user}. |
| 1241 | For example: | 1241 | For 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 |
| 1249 | Instead of a single default user, @option{tramp-default-user-alist} | 1249 | Instead of a single default user, @code{tramp-default-user-alist} |
| 1250 | allows multiple default user values based on access method or host | 1250 | allows multiple default user values based on access method or host |
| 1251 | name combinations. The alist can hold multiple values. For example, to | 1251 | name combinations. The alist can hold multiple values. For example, to |
| 1252 | use the @samp{john} as the default user for the domain | 1252 | use 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 | ||
| 1274 | The last entry in @option{tramp-default-user-alist} should be reserved | 1274 | The last entry in @code{tramp-default-user-alist} should be reserved |
| 1275 | for catch-all or most often used login. | 1275 | for 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 |
| 1291 | When host name is omitted, @value{tramp} substitutes the value from | 1291 | When host name is omitted, @value{tramp} substitutes the value from |
| 1292 | the @option{tramp-default-host} user option. It is initially | 1292 | the @code{tramp-default-host} user option. It is initially |
| 1293 | populated with the local host name where Emacs is running. The | 1293 | populated with the local host name where Emacs is running. The |
| 1294 | default method, default user and default host can be overridden as | 1294 | default method, default user and default host can be overridden as |
| 1295 | follows: | 1295 | follows: |
| @@ -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 |
| 1311 | Instead of a single default host, @option{tramp-default-host-alist} | 1311 | Instead of a single default host, @code{tramp-default-host-alist} |
| 1312 | allows multiple default host values based on access method or user | 1312 | allows multiple default host values based on access method or user |
| 1313 | name combinations. The alist can hold multiple values. While | 1313 | name 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, |
| 1315 | like @option{adb}, require defaults overwritten. | 1315 | like @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 | |||
| 1329 | have intermediate check points. | 1329 | have 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 |
| 1333 | through. This user option is list of triples consisting of | 1333 | through. 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 |
| 1684 | For faster initial connection times, @value{tramp} stores previous | 1684 | For faster initial connection times, @value{tramp} stores previous |
| 1685 | connection properties in a file specified by the user option | 1685 | connection properties in a file specified by the user option |
| 1686 | @option{tramp-persistency-file-name}. | 1686 | @code{tramp-persistency-file-name}. |
| 1687 | 1687 | ||
| 1688 | The default file name for @option{tramp-persistency-file-name} is | 1688 | The 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 |
| 1692 | when exiting Emacs. Delete this file for @value{tramp} to recreate a | 1692 | when exiting Emacs. Delete this file for @value{tramp} to recreate a |
| 1693 | new one on next Emacs startup. | 1693 | new one on next Emacs startup. |
| 1694 | 1694 | ||
| 1695 | Set @option{tramp-persistency-file-name} to @code{nil} to disable | 1695 | Set @code{tramp-persistency-file-name} to @code{nil} to disable |
| 1696 | storing connections persistently. | 1696 | storing connections persistently. |
| 1697 | 1697 | ||
| 1698 | When @value{tramp} detects a change in the operating system version in | 1698 | When @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 |
| 1710 | Set @option{tramp-connection-properties} to manually override | 1710 | Set @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} |
| 1713 | matches remote file names. Use @code{nil} to match all. | 1713 | matches remote file names. Use @code{nil} to match all. |
| @@ -1739,7 +1739,7 @@ The parameters @code{tramp-remote-shell} and | |||
| 1739 | values for the remote host. | 1739 | values 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 | ||
| 1744 | To get around how restricted shells randomly drop connections, set the | 1744 | To get around how restricted shells randomly drop connections, set the |
| 1745 | special property @samp{busybox}. For example: | 1745 | special 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 | |||
| 1793 | remote user by the remote host. @value{tramp} does not normally retain | 1793 | remote user by the remote host. @value{tramp} does not normally retain |
| 1794 | this remote path after login. However, @code{tramp-own-remote-path} | 1794 | this remote path after login. However, @code{tramp-own-remote-path} |
| 1795 | preserves the path value, which can be used to update | 1795 | preserves 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} | |||
| 1837 | provides a few tweaks to address the most common ones. | 1837 | provides 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, |
| 1844 | which may not be the same as the local login shell prompt, | 1844 | which 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 |
| 1854 | distinguish between prompts for passwords and prompts for passphrases. | 1854 | distinguish between prompts for passwords and prompts for passphrases. |
| 1855 | By default, @option{tramp-password-prompt-regexp} handles the | 1855 | By default, @code{tramp-password-prompt-regexp} handles the |
| 1856 | detection in English language environments. See a localization | 1856 | detection in English language environments. See a localization |
| 1857 | example below: | 1857 | example below: |
| 1858 | 1858 | ||
| @@ -1876,7 +1876,7 @@ example below: | |||
| 1876 | @end lisp | 1876 | @end lisp |
| 1877 | 1877 | ||
| 1878 | Similar localization may be necessary for handling wrong password | 1878 | Similar localization may be necessary for handling wrong password |
| 1879 | prompts, for which @value{tramp} uses @option{tramp-wrong-passwd-regexp}. | 1879 | prompts, 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 | ||
| 1935 | To suppress inappropriate prompts for terminal type, @value{tramp} | 1935 | To suppress inappropriate prompts for terminal type, @value{tramp} |
| 1936 | sets the @env{TERM} environment variable before the remote login | 1936 | sets the @env{TERM} environment variable before the remote login |
| 1937 | process begins via the user option @option{tramp-terminal-type} (see | 1937 | process begins via the user option @code{tramp-terminal-type} (see |
| 1938 | above). This will silence common @command{tset} related prompts. | 1938 | above). 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 |
| 2169 | To avoid @value{tramp} from saving backup files owned by @samp{root} | 2169 | To avoid @value{tramp} from saving backup files owned by @samp{root} |
| 2170 | to locations accessible to others, default backup settings in | 2170 | to 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 | ||
| 2173 | Here's a scenario where files could be inadvertently exposed. Emacs | 2173 | Here's a scenario where files could be inadvertently exposed. Emacs |
| 2174 | by default writes backup files to the same directory as the original | 2174 | by 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 | |||
| 2179 | of the secretfile is now owned by the user logged in from | 2179 | of 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 | ||
| 2182 | When @option{backup-directory-alist} is @code{nil} (the default), such | 2182 | When @code{backup-directory-alist} is @code{nil} (the default), such |
| 2183 | problems do not occur. | 2183 | problems do not occur. |
| 2184 | 2184 | ||
| 2185 | To ``turn off'' the backup feature for @value{tramp} files and stop | 2185 | To ``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 | |||
| 2213 | host names prefixed to the file name. For example, transforming | 2213 | host 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 |
| 2217 | the existing user option @option{backup-directory-alist}. | 2217 | the existing user option @code{backup-directory-alist}. |
| 2218 | 2218 | ||
| 2219 | Then @value{tramp} backs up to a file name that is transformed with a | 2219 | Then @value{tramp} backs up to a file name that is transformed with a |
| 2220 | prefix consisting of the DIRECTORY name. This file name prefixing | 2220 | prefix consisting of the DIRECTORY name. This file name prefixing |
| @@ -2246,16 +2246,16 @@ The backup file name of | |||
| 2246 | Just as for backup files, similar issues of file naming affect | 2246 | Just as for backup files, similar issues of file naming affect |
| 2247 | auto-saving @value{tramp} files. Auto-saved files are saved in the | 2247 | auto-saving @value{tramp} files. Auto-saved files are saved in the |
| 2248 | directory specified by the user option | 2248 | directory 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 |
| 2250 | the local temporary directory. But in some versions of Debian | 2250 | the local temporary directory. But in some versions of Debian |
| 2251 | GNU/Linux, this points to the source directory where the Emacs was | 2251 | GNU/Linux, this points to the source directory where the Emacs was |
| 2252 | compiled. Reset such values to a valid directory. | 2252 | compiled. Reset such values to a valid directory. |
| 2253 | 2253 | ||
| 2254 | Set @option{auto-save-file-name-transforms} to @code{nil} to save | 2254 | Set @code{auto-save-file-name-transforms} to @code{nil} to save |
| 2255 | auto-saved files to the same directory as the original file. | 2255 | auto-saved files to the same directory as the original file. |
| 2256 | 2256 | ||
| 2257 | @vindex tramp-auto-save-directory | 2257 | @vindex tramp-auto-save-directory |
| 2258 | Alternatively, set the user option @option{tramp-auto-save-directory} | 2258 | Alternatively, set the user option @code{tramp-auto-save-directory} |
| 2259 | to direct all auto saves to that location. | 2259 | to 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 |
| 2580 | multiple proxies without using @option{tramp-default-proxies-alist} | 2580 | multiple proxies without using @code{tramp-default-proxies-alist} |
| 2581 | configuration setup(@pxref{Multi-hops}). | 2581 | configuration setup(@pxref{Multi-hops}). |
| 2582 | 2582 | ||
| 2583 | Each proxy is specified using the same syntax as the remote host | 2583 | Each 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}: | |||
| 2594 | Proxies can take patterns @code{%h} or @code{%u}. | 2594 | Proxies 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 |
| 2598 | during that Emacs session. Subsequent @value{tramp} connections to | 2598 | during that Emacs session. Subsequent @value{tramp} connections to |
| 2599 | the same remote host can then use the shortcut form: | 2599 | the 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 |
| 2603 | For ad-hoc definitions to be saved automatically in | 2603 | For 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 | |||
| 2647 | For @value{tramp} to find the command on the remote, it must be | 2647 | For @value{tramp} to find the command on the remote, it must be |
| 2648 | accessible through the default search path as setup by @value{tramp} | 2648 | accessible through the default search path as setup by @value{tramp} |
| 2649 | upon first connection. Alternatively, use an absolute path or extend | 2649 | upon 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 |
| 2660 | Customize user option @option{tramp-remote-process-environment} to | 2660 | Customize user option @code{tramp-remote-process-environment} to |
| 2661 | suit the remote program's environment for the remote host. | 2661 | suit 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 |
| 2663 | structured similar to @code{process-environment}, where each element | 2663 | structured similar to @code{process-environment}, where each element |
| 2664 | is a string of the form @samp{ENVVARNAME=VALUE}. | 2664 | is 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} |
| 2678 | Modifying or deleting already existing values in the | 2678 | Modifying 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 |
| 2680 | restricted remote hosts. For example, some system administrators | 2680 | restricted remote hosts. For example, some system administrators |
| 2681 | disallow changing @env{HISTORY} environment variable. To accommodate | 2681 | disallow changing @env{HISTORY} environment variable. To accommodate |
| 2682 | such restrictions when using @value{tramp}, fix the | 2682 | such 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 |
| 2684 | local @file{.emacs} file: | 2684 | local @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 | ||
| 2707 | In addition to @option{tramp-remote-process-environment}, you can set | 2707 | In addition to @code{tramp-remote-process-environment}, you can set |
| 2708 | environment variables for individual remote process calls by | 2708 | environment variables for individual remote process calls by |
| 2709 | let-binding @code{process-environment}. @value{tramp} applies any | 2709 | let-binding @code{process-environment}. @value{tramp} applies any |
| 2710 | entries not present in the global default value of | 2710 | entries 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). |
| 2713 | For example: | 2713 | For 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 | ||
| 2762 | Set @option{explicit-shell-file-name} to the appropriate shell name | 2762 | Set @code{explicit-shell-file-name} to the appropriate shell name |
| 2763 | when using @value{tramp} between two hosts with different operating | 2763 | when using @value{tramp} between two hosts with different operating |
| 2764 | systems, such as @samp{windows-nt} and @samp{gnu/linux}. This option | 2764 | systems, such as @samp{windows-nt} and @samp{gnu/linux}. This option |
| 2765 | ensures the correct name of the remote shell program. | 2765 | ensures the correct name of the remote shell program. |
| 2766 | 2766 | ||
| 2767 | When @option{explicit-shell-file-name} is equal to @code{nil}, calling | 2767 | When @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 | ||
| 2770 | Starting with Emacs 26, you could use connection-local variables for | 2770 | Starting with Emacs 26, you could use connection-local variables for |
| 2771 | setting different values of @option{explicit-shell-file-name} for | 2771 | setting different values of @code{explicit-shell-file-name} for |
| 2772 | different remote hosts. | 2772 | different 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 |
| 2851 | the default directory correctly for the @file{*eshell*} buffer. | 2851 | the 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} |
| 2853 | with an entry for this directory (@pxref{Multi-hops}): | 2853 | with 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. | |||
| 2932 | command. Powershell V2.0 on the remote host is required to run | 2932 | command. Powershell V2.0 on the remote host is required to run |
| 2933 | processes triggered from @value{tramp}. | 2933 | processes 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 |
| 2936 | be set properly so @kbd{M-x shell @key{RET}} can open a proper remote | 2936 | be set properly so @kbd{M-x shell @key{RET}} can open a proper remote |
| 2937 | shell on a MS Windows host. To open @command{cmd}, set it as follows: | 2937 | shell 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 | |||
| 3090 | Use an external method, such as @option{scp}, which are faster than | 3090 | Use an external method, such as @option{scp}, which are faster than |
| 3091 | internal methods. | 3091 | internal methods. |
| 3092 | 3092 | ||
| 3093 | Keep the file @option{tramp-persistency-file-name}, which is where | 3093 | Keep 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 |
| 3095 | is enabled by default. Don't disable it. | 3095 | is enabled by default. Don't disable it. |
| 3096 | 3096 | ||
| @@ -3099,7 +3099,7 @@ files are not independently updated outside @value{tramp}'s control. | |||
| 3099 | That cache cleanup will be necessary if the remote directories or | 3099 | That cache cleanup will be necessary if the remote directories or |
| 3100 | files are updated independent of @value{tramp}. | 3100 | files are updated independent of @value{tramp}. |
| 3101 | 3101 | ||
| 3102 | Set @option{tramp-completion-reread-directory-timeout} to @code{nil} to | 3102 | Set @code{tramp-completion-reread-directory-timeout} to @code{nil} to |
| 3103 | speed up completions, @ref{File name completion}. | 3103 | speed up completions, @ref{File name completion}. |
| 3104 | 3104 | ||
| 3105 | Disable version control to avoid delays: | 3105 | Disable version control to avoid delays: |
| @@ -3354,7 +3354,7 @@ Host indication in the mode line? | |||
| 3354 | Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager. | 3354 | Install @file{tramp-theme} from GNU ELPA via Emacs' Package Manager. |
| 3355 | Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further | 3355 | Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further |
| 3356 | customization is explained in user option | 3356 | customization 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? | |||
| 3385 | Due to the remote shell saving tilde expansions triggered by | 3385 | Due 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 |
| 3389 | variable @env{HISTFILE} is unset, and environment variables | 3389 | variable @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 | ||
| 3682 | Alternatively, when saving abbreviated multi-hop file names | 3682 | Alternatively, 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 |
| 3684 | option @option{tramp-save-ad-hoc-proxies} must be set non-@code{nil} | 3684 | option @code{tramp-save-ad-hoc-proxies} must be set non-@code{nil} |
| 3685 | value. | 3685 | value. |
| 3686 | 3686 | ||
| 3687 | 3687 | ||