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 22:20:45 +0300 Message-ID: <221919a1-950e-4ef3-975d-f86078d8e105@gutov.dev> References: <3a497741-2ad0-4919-b7c9-cdb36b0eb455@gutov.dev> <8734q7h35d.fsf@gmx.de> <87ttinfgoa.fsf@gmx.de> <861q5r2ric.fsf@gnu.org> <87o78vf9l2.fsf@gmx.de> <86sey711m6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34330"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71049@debbugs.gnu.org To: Eli Zaretskii , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 21:22: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 1sAaUa-0008hY-Dr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 21:22:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAaUG-0004D7-UR; Fri, 24 May 2024 15:21: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 1sAaUG-0004Bp-0C for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 15:21:56 -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 1sAaUF-0006gy-Oy for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 15:21:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAaUL-0005oF-QN for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 15:22: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 19:22: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.171657846322303 (code B ref 71049); Fri, 24 May 2024 19:22:01 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 24 May 2024 19:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:38720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAaTO-0005nd-OF for submit@debbugs.gnu.org; Fri, 24 May 2024 15:21:03 -0400 Original-Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:54351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAaTM-0005n8-Ru for 71049@debbugs.gnu.org; Fri, 24 May 2024 15:21:01 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 99D5F13800F1; Fri, 24 May 2024 15:20:48 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 24 May 2024 15:20:48 -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=1716578448; x=1716664848; bh=a+YBZJ5WIib94uPSzMMhnsufiSQkleKRBQdv5/mPRuw=; b= leC1zw+ifLEuqR0E28EYXXtnuZJKQI8pzDtWB7/M+7bpXZ+H0rIq8uvqrybd2vS0 Y7qqD2GcGpbwsFMYfMCRUvMaS9Gh2LlZ35o1SKYDvcCyYH7Yc8OCV3tDKngKXzR5 HYMJV8Z7xVv3qraEhDfKRwzG+H+dXBFcUfGGbJI//kIxrqXe04lXBMyYDdGKULmZ ZbASZSrzyaJfZC33/b4mK1kFVdP75hCBXtH/It7vOt04evrsSKXNhSAxgJbofTLR 8LQPpgYAAcNyTb0bMWFzfVj7fbisPQnVHC7UBZfNFSyZoRz/ZCZ/oXRyC6hgvKmm uBmsAHNMbPuuf9j8ZlmR4A== 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=1716578448; x= 1716664848; bh=a+YBZJ5WIib94uPSzMMhnsufiSQkleKRBQdv5/mPRuw=; b=i xxFKDAaso2oNpGWIOP7xe5824wXdJl5gC06Z3yrmfd85coy4juJXALbYCf2YEu8a vU24jaBGhn9u28bIHQg4w/oC9WsMRSID/vOJO11yDkEVzSLzlGiVNfmsgHeGzaIT VxYlYWSnxupF6VumtsaZ0DAFyJRTnlw++YTkeCq6OV2560yZq3/tnOu6N0hPJ6kD 1eF6rREUh7OIIPEGzrHpROWIp+IJJj+dFD3hKtMVVHkydaHfFRXa0ccHqfU3RDfO jIv0eDnEXfCOeRRQ20Vz6YioPZYDIcvQqMIbyK2Ug8t1hhjf6/bJNQmgM3ZtlrOs 4SkaTOcfYHCidVnYK2HRA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeffieefvdelueektdfgleeigedugfevkeefjeevjeffteffueeuueeghfev ieduvdenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 May 2024 15:20:47 -0400 (EDT) Content-Language: en-US In-Reply-To: <86sey711m6.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:285791 Archived-At: On 24/05/2024 21:55, Eli Zaretskii wrote: >> From: Michael Albinus >> Cc: dmitry@gutov.dev, 71049@debbugs.gnu.org >> Date: Fri, 24 May 2024 18:39:21 +0200 >> >> Eli Zaretskii writes: >> >>> Can you explain the effect of that option on the scenarios that >>> started this bug report? I don't think I have a clear understanding >>> of that. >> >> We're speaking about shell-mode. Let's try the command >> [...] >> 6 roundtrips to insert the remote history file into a buffer which we >> don't need. Just for a single asynchronous "ls" command. >> >> With the new user option, this could be avoided by a user setting. > > Thanks. But that's not what I thought I was asking about, see below. > > However, as long as we are talking about reading the history file: why > does async-shell-command need the history file? (I understand why > shell-mode does, but async-shell-command is not shell-mode.) The answer is that async-shell-command uses shell-mode as the major mode for the output buffer. For syntax highlighting, I guess. You make a good point that the shell history for such buffers would usually make no sense - even if the running process takes user input (usually not, but sometimes it might) - its input history would be different from the shell. So maybe we could just move the last form in shell-mode (which initializes comint-input-ring) to 'shell' >>> Why is the process being called by such bogus names anyway? >> >> I don't understand. Which bogus names? > > I thought this was about the original complaints, whtch started this > bug report, see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71049#5. > The fact that the history file was being read sounded as a side issue, > at least at first. So my question was about these messages: > > Process *Async Shell Command* finished > -l: finished. > > I thought the option you suggest is intended to make these "process > names" be more reasonable. I guess I am confused, and the discussion > moved to the "side issue" of preventing the unnecessary reading of the > history file? These are two separate (but correlated) issues in one bug report.