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: Michael Albinus
Subject: bug#35055: 27.0.50; async-shell-command truncates output lines
Date: Fri, 19 Apr 2019 09:21:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

Hi Juri,

>> If somebody needs it for a remote `shell-command', there's still the
>> option to set COLUMNS in `tramp-remote-process-environment' yourself.
>
> Or maybe better to add another option `tramp-remote-process-width'?

No. Tramp is a library, it shouldn't care who's calling it. If I would
start to add package-specific customisation, other packages could
request the same.

And `tramp-remote-process-width' would compete with `shell-command-width'.

> BTW, recently you added to the Tramp manual the example that I proposed:
>
>   /ssh:user@host|sudo::/path/to/file
>
> But I discovered a warning against using "|sudo::" without the hostname:
>
> https://stackoverflow.com/questions/2177687/open-file-via-ssh-and-sudo-with-emacs
>
>   "Important: be sure to specify the hostname explicitly:
>    sudo:remotehost: rather than sudo::"
>
> Is this restriction still valid?  Because when I used "|sudo::"
> without the hostname, it works fine.

Using the host name of the previous hop as default is a new feature in
Tramp 2.4 (Emacs 27). See etc/NEWS:

--8<---------------cut here---------------start------------->8---
*** For some connection methods, like "su" or "sudo", the host name in
ad-hoc multi-hop file names must match the previous hop.  Default host
names are adjusted to the host name from the previous hop.
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.





reply via email to

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