>>> 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. > > Again, using tramp-remote-process-environment seems to be the > appropriate place. Thanks for the suggestion, I customized it to '("COLUMNS=222") that is approximately equal to my frame's width, thus `ps` shows enough output, and `dpkg -l '*emacs*'` is not too wide ('dpkg' tries to fill all available columns). Should a similar option be added for async-shell-command as well?