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: Sat, 25 May 2024 20:31:33 +0300 Message-ID: <50900208-34b8-4b7c-90fc-8796da6bccd6@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> <221919a1-950e-4ef3-975d-f86078d8e105@gutov.dev> <87wmnidv3u.fsf@gmx.de> <25dad14a-397c-4052-908c-121e40bbef51@gutov.dev> <877cfhubyd.fsf@gmx.de> <608acf89-a1f9-4151-9f53-99962af87688@gutov.dev> <87jzjhvnbw.fsf@gmx.de> 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="7095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 71049@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 19:32:05 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 1sAvFU-0001Pt-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 19:32:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAvFL-0005N7-PN; Sat, 25 May 2024 13:31:55 -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 1sAvFL-0005Mu-5n for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 13:31: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 1sAvFK-0000rT-SD for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 13:31:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAvFS-0005ao-FJ for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2024 17:32:02 +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.171665831321482 (code B ref 71049); Sat, 25 May 2024 17:32:02 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 25 May 2024 17:31:53 +0000 Original-Received: from localhost ([127.0.0.1]:44674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAvFI-0005aQ-Ra for submit@debbugs.gnu.org; Sat, 25 May 2024 13:31:53 -0400 Original-Received: from wfout3-smtp.messagingengine.com ([64.147.123.146]:44077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAvFG-0005aK-DH for 71049@debbugs.gnu.org; Sat, 25 May 2024 13:31:50 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 0FAFD1C00090; Sat, 25 May 2024 13:31:36 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 25 May 2024 13:31:37 -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=1716658296; x=1716744696; bh=t/rJEPQi3/pDIsWsw8ZAzpW3y4EEqVGa4pK+sTgnZr0=; b= KtENCSTuXhOgPE1KdMrjWoUQb9hi9Js1BNP/m1Xe9338D/POagwkHJmagQJuQ6w9 Mjs728rioty5Ndl4A3U2ZPYkuFOgEKWQ+RJxNC9Wm9SVg2LRbNgWVijxQFYdVEmd kJ2hvZOn3CrMqIUR9UGyg6tL+UO950EIZL8QLYd9ebjf0i8LK2G757FOKig/WEpA CpgAOiYoYhzhK5o3a+rCi5a6W0ZpQvEWQLeZii7TmIitgRLY6pe0iQqywantT63w n2XLn3G1JSSscWnWNHhd6768wWMhBzAuW4vYN6+BxaeCnhEvNiWfcHA0+1yUhcYM QtoUY6L4wfwxB3GENTx38A== 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=1716658296; x= 1716744696; bh=t/rJEPQi3/pDIsWsw8ZAzpW3y4EEqVGa4pK+sTgnZr0=; b=C +WTcfX+vDoaFrhK4Ok8QvvjZ8xl2mSBnfG3flaoaHPSwRqxexAjxw2jiNxtK8mCT Q6Fgb5vYfowCD9kgiJ5zlI0jFW9vx2hisCNKnTwn7v9kfE6nSNzF6/tXoLfTl7ok dPFULuRCX66WhaDsI8CHqgaWW5+kNcL7qyga8vVNV5nu6eVSank3ZVxYKh7weyZO 6B8p5j1LpNVJ4uEcBnBiWe5pFCEawkvOAtMSuknQpTbuYF45efY0ftWj4RwCF1P5 D1tySnp6vdOGAtSrHKO6gxXzeL3rE4BwCWU8Z73Has9lELXAvQRb+RQxNl840fFn vID7QTMe2Lg6C6IeS+Ljw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejtddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 May 2024 13:31:35 -0400 (EDT) Content-Language: en-US In-Reply-To: <87jzjhvnbw.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:285898 Archived-At: On 25/05/2024 20:00, Michael Albinus wrote: > I'll have another idea. > > shell-mode checks already, whether the histfile is equal > null-device. That works for the local case only. > > However, in Tramp there is tramp-histfile-override. It let's you decide > whether you want to use the remote histfile, or use a histfile given by > a file name, or don't use a histfile. > > This works for normal sync and async processes, but not for direct async > processes (IIRC). Let's see whether I could extend this mechanism, and > provide shell-mode proper information. Obeying tramp-histfile-override sounds like it will be an improvement, thank you. > If a user sets tramp-histfile-override to t or "/dev/null", shell-mode > should not read the remote histfile. Users are already conditioned to > set this user option :-) But when used it would still regress on bug#36742, right? I'm not 100% sure what most of the users want in this area, but it appears as if at least one wanted to have access to command history. And unlike when using async-shell-command, users of 'M-x shell' probably can afford to wait a little longer for the history to load (in all likelihood the new buffer will live longer, over multiple user inputs). So it seems to me that fixing shell-mode would be good for the default behavior, and then one could use tramp-histfile-override to add extra performance on top.