aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2017-06-13 15:20:43 +0200
committerMichael Albinus2017-06-13 15:20:43 +0200
commit4e22083bf705285ca9c19949ed678defd6501998 (patch)
tree28fa3773a5c2c85a6cf207827432ca38f7c94ead /doc/misc
parente408e9aa030a00cb1a61acdc729e8d6786b25fe3 (diff)
downloademacs-4e22083bf705285ca9c19949ed678defd6501998.tar.gz
emacs-4e22083bf705285ca9c19949ed678defd6501998.zip
Minor tweaks in Tramp manual
* doc/misc/trampver.texi: Add prefixwithspace flag. * doc/misc/tramp.texi (Password handling): Harmonize example. (File name completion): Use prefixwithspace flag. (Frequently Asked Questions): Explain `tramp-histfile-override'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi24
-rw-r--r--doc/misc/trampver.texi2
2 files changed, 20 insertions, 6 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 38b63715b51..a42dc6ed3c0 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1507,7 +1507,7 @@ The port can take any @value{tramp} method (@pxref{Inline methods},
1507file name syntax, must be appended to the machine and login items: 1507file name syntax, must be appended to the machine and login items:
1508 1508
1509@example 1509@example
1510machine melancholia#4711 port davs login daniel%DOMAIN password geheim 1510machine melancholia#4711 port davs login daniel%BIZARRE password geheim
1511@end example 1511@end example
1512 1512
1513@vindex auth-source-debug 1513@vindex auth-source-debug
@@ -2276,7 +2276,7 @@ in @file{.emacs}.
2276@xref{Completion Options, , , emacs}. 2276@xref{Completion Options, , , emacs}.
2277@end ifinfo 2277@end ifinfo
2278 2278
2279For example, type @kbd{C-x C-f @value{prefix}s @key{TAB}}, 2279For example, type @kbd{C-x C-f @value{prefixwithspace} s @key{TAB}},
2280@value{tramp} completion choices show up as 2280@value{tramp} completion choices show up as
2281 2281
2282@example 2282@example
@@ -3160,10 +3160,22 @@ then set them with a hook as follows:
3160@item 3160@item
3161Why is @file{~/.sh_history} file on the remote host growing? 3161Why is @file{~/.sh_history} file on the remote host growing?
3162 3162
3163Due to @command{ksh} saving tilde expansions triggered by 3163Due to the remote shell saving tilde expansions triggered by
3164@value{tramp}, the history file is probably growing rapidly. To fix, 3164@value{tramp}, the history file is probably growing rapidly.
3165turn off saving history by putting this shell code in the 3165@value{tramp} can suppress this behaviour with the user option
3166@file{.kshrc} file: 3166@code{tramp-histfile-override}. When set to @code{t}, environment
3167variable @env{HISTFILE} is unset, and environment variables
3168@env{HISTFILESIZE} @env{HISTSIZE} are set to 0.
3169
3170Alternatively, @code{tramp-histfile-override} could be a string.
3171Environment variable @env{HISTFILE} is set to this file name then. Be
3172careful when setting to @file{/dev/null}; this might result in
3173undesired results when using @command{bash} as remote shell.
3174
3175Another approach is to disable @value{tramp}'s handling of the
3176@env{HISTFILE} at all by setting @code{tramp-histfile-override} to
3177@code{nil}. In this case, saving history could be turned off by
3178putting this shell code in the @file{.bashrc} or @file{.kshrc} file:
3167 3179
3168@example 3180@example
3169@group 3181@group
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi
index 70701aa3589..f1cb60b9d25 100644
--- a/doc/misc/trampver.texi
+++ b/doc/misc/trampver.texi
@@ -27,6 +27,7 @@
27 27
28@ifset unified 28@ifset unified
29@set prefix / 29@set prefix /
30@set prefixwithspace /
30@set prefixhop 31@set prefixhop
31@set postfix : 32@set postfix :
32@set postfixhop : 33@set postfixhop :
@@ -36,6 +37,7 @@
36 37
37@ifset separate 38@ifset separate
38@set prefix /[ 39@set prefix /[
40@set prefixwithspace / [
39@set prefixhop [ 41@set prefixhop [
40@set postfix ] 42@set postfix ]
41@set postfixhop / 43@set postfixhop /