From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71049: async-shell-command ends with "Process *Async Shell Command* finished" when remote "direct-async-process" Date: Fri, 24 May 2024 20:17:47 +0300 Message-ID: References: <3a497741-2ad0-4919-b7c9-cdb36b0eb455@gutov.dev> <8734q7h35d.fsf@gmx.de> <87ttinfgoa.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12825"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71049@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 19:19:29 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sAYZk-000333-LB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 19:19:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAYZE-0007yK-Rv; Fri, 24 May 2024 13:18:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAYZD-0007xp-AM for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:18:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAYZC-0000zt-VE for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:18:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAYZJ-0001os-IO for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2024 17:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71049 X-GNU-PR-Package: emacs Original-Received: via spool by 71049-submit@debbugs.gnu.org id=B71049.17165710896988 (code B ref 71049); Fri, 24 May 2024 17:19:01 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 24 May 2024 17:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:38154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAYYR-0001oe-KC for submit@debbugs.gnu.org; Fri, 24 May 2024 13:18:09 -0400 Original-Received: from fout8-smtp.messagingengine.com ([103.168.172.151]:56779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAYYN-0001oG-O2 for 71049@debbugs.gnu.org; Fri, 24 May 2024 13:18:06 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 3F58A1380057; Fri, 24 May 2024 13:17:51 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 24 May 2024 13:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1716571071; x=1716657471; bh=gMhA9daUN78h37P9D/D9H65LImgzvVRXQBRQFOqMHSw=; b= LAQzQUVgJU61DtoBh0iLORIS/qlsBu/DYz8zZGbnV/MCHXNNn8TLKOAcNWg78U9n vFd3+jKl4SQNi1Oj2RMm2y6PNtqrd+IuNtrn3FRHC+FVL7WvI6omGEv5+PKSEXj5 6dsaPmefZOyN657iBsazMM6bcV4Oh6Aum+DTM8hKIpPXSpYmbtoYXXcexDVcz9Lq WpQIrcYbjrEEWruBn1ulVPqBucR2DryPpYwMJCrGLayRJmUKqmOOpaKA444s19Es V2xYzZbTGT+Qwz8Uz6iU1IDhG44l6u/AQ/5i8hb8XrbT4AX91jll0ZyHxOem9XC+ ptbx0nxbYS+8ayWQ9DpdnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716571071; x= 1716657471; bh=gMhA9daUN78h37P9D/D9H65LImgzvVRXQBRQFOqMHSw=; b=M 3L5DJq1FNARepB/IavOHXlDzEOaOc0L/2q5CnaPpZBeFWsyJSBfXkxXQYhXo2EJ3 BIXp0eWkj46ysiKRZYWEtk1u+KjYV4i9/Q99h6ETZ4HOrfhdtLv5cC7hnGcP8TuN bGSr8b81fI65/2QhBrvUYtCdSJM37tbmPiOfnfNnGWxwZyvN3BkQlHD3EF6o7Oi7 smJrX29/7pL1xuxRXFmzflmfUp9sybiAdsFBE68O+BrpqOuSr/nSlqbps09ieoSL SRm7D06lpM6T4/8EwHAz/ROahQLF0ZB2wSNhAf9bs0uLFoHAfJIcoDTqQkrvlWNh DXoht1+qhqt4Ksa0ofj0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeegleefteekgffhvdfhtdegveevveetteegteevgeettdehhfdukeetheff ueekkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 May 2024 13:17:49 -0400 (EDT) Content-Language: en-US In-Reply-To: <87ttinfgoa.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285780 Archived-At: Hi Michael, On 24/05/2024 17:06, Michael Albinus wrote: >>> The command can be simple, like 'ls' or 'echo 123'. I also see this >>> added to*Messages*: >>> >>> Tramp: Inserting >>> ‘/ssh:dgutov@fencepost.gnu.org:/home/d/dgutov/.tramp_history’...done >> According to reading .tramp_history: this is performed in >> comint-read-input-ring, called from shell-mode. comint-input-ring-file-name >> is set in shell-mode, I don't see a trivial solution to suppress >> this. Likely, we must extend shell-mode for this case. > We could add a user option remote-file-name-inhibit-input-ring which > suppresses reading the remote histfile, when set to non-nil. See > appended patch. Maybe a good middle-ground solution would be to defer the reading of the history file until history is actually used? E.g. in my examples there was no reading of input from the user, and there will be many read-life scenarios like that. Perhaps commands like comint-previous-input could check whether the ring is not initialized yet and call comint-read-input-ring, rather than have this call performed eagerly at the end of shell-mode.