bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35055: 27.0.50; async-shell-command truncates output lines


From: Juri Linkov
Subject: bug#35055: 27.0.50; async-shell-command truncates output lines
Date: Sun, 07 Apr 2019 23:15:43 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> One thing I still don't understand is how it would be possible
>> to do the same for the remote process?
>
> Well, don't know (yet), this needs more testing. At least, we could set
> $COLUMNS directly:
>
> (let ((default-directory "/ssh::")
>       (process-environment (cons "COLUMNS=1024" process-environment)))
>   (shell-command-to-string "ps aux"))
>
> (let ((default-directory "/ssh::")
>       (process-environment (cons "COLUMNS=1024" process-environment)))
>   (shell-command-to-string "ps aux &"))
>
> (let ((default-directory "/ssh::")
>       (process-environment (cons "COLUMNS=1024" process-environment)))
>   (shell))
>
> Tramp could add the $COLUMNS setting by its own. Maybe, there exist a
> more general solution, let's see.
>
> If you add "COLUMNS=1024" to tramp-remote-process-environment, you would
> get this effect already w/o any change in Tramp. Maybe I shall document
> it somewhere in the Tramp manual.

It seems it's impossible to set COLUMNS to the width of the output window
neither in Tramp nor in async-shell-command.  shell-mode can do this
using set-process-window-size.  But Tramp can't do the same for the
remote process, and for async-shell-command it's too late to do this
because when it displays a window with the output buffer,
the command is already finished.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]