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: Sun, 19 May 2024 15:40:10 +0300 Message-ID: <6ec89959-2452-40a0-aca9-75ef29e9186b@gutov.dev> References: <3a497741-2ad0-4919-b7c9-cdb36b0eb455@gutov.dev> <86v83aba1s.fsf@gnu.org> 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="5699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71049@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 14:41:17 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 1s8fqk-0001GY-Sj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 14:41:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8fqV-0007W2-Bh; Sun, 19 May 2024 08:40:59 -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 1s8fqT-0007VA-TW for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 08:40:57 -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 1s8fqT-0004m8-Km for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 08:40:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8fqX-0008Ik-Jn for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 08:41: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: Sun, 19 May 2024 12:41: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.171612242431881 (code B ref 71049); Sun, 19 May 2024 12:41:01 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 19 May 2024 12:40:24 +0000 Original-Received: from localhost ([127.0.0.1]:36150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8fpw-0008I9-G2 for submit@debbugs.gnu.org; Sun, 19 May 2024 08:40:24 -0400 Original-Received: from fout3-smtp.messagingengine.com ([103.168.172.146]:53111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8fpv-0008I1-1t for 71049@debbugs.gnu.org; Sun, 19 May 2024 08:40:23 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id DF3261380257; Sun, 19 May 2024 08:40:13 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 19 May 2024 08:40:13 -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=1716122413; x=1716208813; bh=abMi7QIoutEANrOhDgdRa/212bYXHLKxzYs7BJ5/pPA=; b= nbypX/eiyJ8c507cc7UHwMWkqWUgdvB2WwGpbXuEd9ezaC8bXWpKTNwWt9UmSXBE GTTIvnkUbKE2DzfUq8Drl5R6a2xxaQGfkqzLMpK962PYFHSBTwk6//7N186jgB0O AbsBnoS7st2M82+KU4jAC+r8/17x3WaUyheQStBCcrJqxnTQwTCzVdwvGGVSJ9Mh kE5BX7RBdDhWh8LauDKvjrME04BaCU2NBxenwebM7KbFEOWYn13rDKkeN7Br6ee/ c+1OfGtAnAgTYfgDt0oQXfbaUL5sIneh8k13Iiug8NKdgiGMHlOrNjJr+BZAWhjr i81m8KJfj/3x2AI7Wb9fvw== 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=1716122413; x= 1716208813; bh=abMi7QIoutEANrOhDgdRa/212bYXHLKxzYs7BJ5/pPA=; b=d Ey+3DpFAVeVhBW7g7xzgvvHQeLbHRaRnySQV6jWp9KOYPD9ZLlMs5IUrH0GrCVUx /QoclBvHfXbdkgmBCEvAGQRJXxvuL9KIIGo/1/j/MzSMP72PQRGtYB9jn4uBg6HA nZfKrbUDIGmK9kE8X1JbLvDyuUGn8uGD6ffWwzatjtwBUCCz/9EurFmbgOxuprU4 3wxIhe+ZFMXS3dRdZ0Sx6L8DgyYflvbT8RvvQeQsdViY1GXm5fYmmkZzCRMehWuJ xaqC/hV3KHhb+cBzHDKrOAX3M2cYD8FjynBX0h4RP0CgjZm5VfJUMG/o8Cb1s7L1 QRDjIMgVut4N4e9QtNR6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehkedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 May 2024 08:40:12 -0400 (EDT) Content-Language: en-US In-Reply-To: <86v83aba1s.fsf@gnu.org> 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:285427 Archived-At: On 19/05/2024 09:17, Eli Zaretskii wrote: >> Date: Sun, 19 May 2024 03:19:00 +0300 >> From: Dmitry Gutov >> >> Previously mentioned in bug#70901. >> >> When a Tramp connection is configured as "direct-async-process", >> >> 1. If the buffer*Async Shell Command* does not exist, invoking M-& in a >> remote buffer from that connection makes it end with >> >> Process*Async Shell Command* finished >> >> 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 >> >> Which seems odd (tramp history is re-read every time like this, for some >> purpose?). >> >> 2. If the buffer such named already exists when command is invoked, then >> this doesn't happen (the output seems correct). But*Messages* says >> >> -l: finished. >> >> ...which is a big puzzling as well. >> >> Also, scenario 1 (when the buffer doesn't exist yet) takes longer than >> 2, but that might be a side-effect of implementation external to Tramp. > The "finished" message comes from the default process sentinel, so if > Tramp wants to avoid that, it should install its own sentinel. shell-commands inserts a sentinel: shell-command-sentinel. So it never inserts that message when invoked locally. Even if it did, the disparity between the two scenarios would still be something to investigate, I think.