From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35055: 27.0.50; async-shell-command truncates output lines Date: Thu, 04 Apr 2019 23:59:36 +0300 Organization: LINKOV.NET Message-ID: <87r2ah32rr.fsf@mail.linkov.net> References: <87tvfkuivn.fsf@mail.linkov.net> <875zrym4eo.fsf@gmx.de> <877ecd797c.fsf@mail.linkov.net> <87y34s21vp.fsf@gmx.de> <87zhp6vmu5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142810"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35055@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 23:22:03 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC9o9-000auC-1j for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Apr 2019 23:22:01 +0200 Original-Received: from localhost ([127.0.0.1]:59946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC9o7-0005XS-Nr for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Apr 2019 17:21:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC9nc-0004yE-Lh for bug-gnu-emacs@gnu.org; Thu, 04 Apr 2019 17:21:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hC9Zh-0004co-Uj for bug-gnu-emacs@gnu.org; Thu, 04 Apr 2019 17:07:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hC9Ze-0004XM-R4 for bug-gnu-emacs@gnu.org; Thu, 04 Apr 2019 17:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hC9Ze-00038x-LW for bug-gnu-emacs@gnu.org; Thu, 04 Apr 2019 17:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Apr 2019 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35055 X-GNU-PR-Package: emacs Original-Received: via spool by 35055-submit@debbugs.gnu.org id=B35055.155441199512022 (code B ref 35055); Thu, 04 Apr 2019 21:07:02 +0000 Original-Received: (at 35055) by debbugs.gnu.org; 4 Apr 2019 21:06:35 +0000 Original-Received: from localhost ([127.0.0.1]:44747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hC9ZB-00037i-6X for submit@debbugs.gnu.org; Thu, 04 Apr 2019 17:06:33 -0400 Original-Received: from palegreen.birch.relay.mailchannels.net ([23.83.209.140]:55045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hC9Z9-00037O-7f for 35055@debbugs.gnu.org; Thu, 04 Apr 2019 17:06:32 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2F470124A2A; Thu, 4 Apr 2019 21:06:29 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a31.g.dreamhost.com (unknown [100.96.39.118]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7104C1247CC; Thu, 4 Apr 2019 21:06:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a31.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 04 Apr 2019 21:06:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Bored-Cellar: 5f4e81ca6c455562_1554411988707_3344339347 X-MC-Loop-Signature: 1554411988707:1363878434 X-MC-Ingress-Time: 1554411988698 Original-Received: from pdx1-sub0-mail-a31.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a31.g.dreamhost.com (Postfix) with ESMTP id BF46E83C8F; Thu, 4 Apr 2019 14:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=urDhVDtHzIvgRYdPTyarLZiYg/g=; b= Xk33P89aoR9vcOrgzZQcy9cKi7mOdzyLtDeCrn9gLN2fHWKOHBlSquLRicoP2c1T ERhEkxxauESJ3KAGXHz4mRnJ2x6MIhhmcLpR6FcRbcBVmMD1wN2T++ymKix0aHBT pY8/nDhjgBHw3C8zRRDhLSsafhdUZVPurZq+fs7dCug= Original-Received: from mail.jurta.org (m91-129-99-202.cust.tele2.ee [91.129.99.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a31.g.dreamhost.com (Postfix) with ESMTPSA id D238983C86; Thu, 4 Apr 2019 14:06:25 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a31 In-Reply-To: <87zhp6vmu5.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 03 Apr 2019 23:36:27 +0300") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrtdehgdduheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelledrvddtvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelledrvddtvddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehmihgthhgrvghlrdgrlhgsihhnuhhssehgmhigrdguvgenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157180 Archived-At: >>>> Note that for remote shell commands the situation is even worse, because >>>> it sets the process property `adjust-window-size-function' to nil, >>>> overwriting any setting in `window-adjust-process-window-size-function'. >>>> This affects even synchronous `shell-command' calls, because they are >>>> implemented Tramp internally as asynchronous process. >>> >>> I had truncated output of remote `shell-command' for a long time >>> and thought that it's impossible to do anything with this, >>> but now that you mentioned remote shell commands, I tried >>> to affect their output with a quite large value of COLUMNS >>> and get untruncated output even on remote. >> >> That's because Tramp sets process property `adjust-window-size-function' >> to `ignore' (and not to nil as I wrote above). This was 2 years ago; >> unfortunately, I have neither a bug nor a message reference for that change. > > Then I don't understand why remote shell output is limited to 80 columns > when Tramp sets `adjust-window-size-function' to `ignore', i.e. not to 80. We could add a new defcustom process-window-width with a choice of a numeric value to set COLUMNS env variable in the process, or a symbol `window-width' to set COLUMNS to the width of the output buffer's window. Then it will handle both asynchronous processes and synchronous remote shell commands as well.