[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35055: 27.0.50; async-shell-command truncates output lines
From: |
Michael Albinus |
Subject: |
bug#35055: 27.0.50; async-shell-command truncates output lines |
Date: |
Sun, 07 Apr 2019 09:32:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> writes:
Hi Juri,
> I didn't know that set-process-window-size changes the
> value of COLUMNS. I thought that COLUMNS is set only by
> comint-term-environment.
comint-term-environment doesn't set anything. It just returns env values
you could add to process-environmont, as in comint-exec-1 or compilation-start.
> 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.
Best regards, Michael.
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/01
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/01
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/02
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/03
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/04
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/05
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/06
- bug#35055: 27.0.50; async-shell-command truncates output lines,
Michael Albinus <=
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/07
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/08
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/08
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/13
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/13
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/14
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/14
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/15
- bug#35055: 27.0.50; async-shell-command truncates output lines, Juri Linkov, 2019/04/16
- bug#35055: 27.0.50; async-shell-command truncates output lines, Michael Albinus, 2019/04/17