From f8625bc8f7573162b1c6b136f4791d8facecd836 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 5 May 2019 16:20:14 +0200 Subject: [PATCH] Describe, how to adapt shell command output width in Tramp * doc/misc/tramp.texi (Quick Start Guide, GVFS based methods): Fix @cindex. (Remote processes): Add some @vindex. Describe shell command output width. --- doc/misc/tramp.texi | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index ca86458e903..0c51f15fbb9 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -545,7 +545,7 @@ file system), @file{@trampfn{dav,user@@host,/path/to/file}} and @cindex google drive @cindex method @option{nextcloud} @cindex @option{nextcloud} method -@cindex owncloud +@cindex nextcloud GVFS-based methods include also @acronym{GNOME} Online Accounts, which support the @option{Files} service. These are the Google Drive file @@ -1208,7 +1208,7 @@ directory have the same @code{display-name}, such a situation must be avoided. @cindex @acronym{GNOME} Online Accounts @cindex method @option{nextcloud} @cindex @option{nextcloud} method -@cindex owncloud +@cindex nextcloud As the name indicates, the method @option{nextcloud} allows you to access OwnCloud or NextCloud hosted files and directories. Like the @@ -3083,6 +3083,8 @@ host. Example: @kbd{M-x auto-revert-tail-mode @key{RET}} runs similarly showing continuous output. +@vindex shell-file-name +@vindex shell-command-switch @code{shell-command} uses the variables @code{shell-file-name} and @code{shell-command-switch} in order to determine which shell to run. For remote hosts, their default values are @file{/bin/sh} and @@ -3091,6 +3093,15 @@ uses @file{/system/bin/sh}). Like the variables in the previous section, these variables can be changed via connection-local variables. +@vindex shell-command-width +@vindex COLUMNS@r{, environment variable} +If Emacs supports the variable @code{shell-command-width} (since Emacs +27.1), @value{tramp} cares about its value for asynchronous shell +commands. It specifies the number of display columns for command +output. For synchronous shell commands, a similar effect can be +achieved by adding the environment variable @env{COLUMNS} to +@code{tramp-remote-process-environment}. + @subsection Running @code{eshell} on a remote host @cindex @code{eshell} -- 2.39.5