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:50:40 +0300 Message-ID: <870774e9-51da-49c3-975b-a22685855ae4@gutov.dev> References: <3a497741-2ad0-4919-b7c9-cdb36b0eb455@gutov.dev> <8734q7h35d.fsf@gmx.de> <87ttinfgoa.fsf@gmx.de> <87jzjjf6q6.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="14891"; 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:51:16 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 1sAZ4V-0003cs-Ta for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 19:51:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAZ4C-000345-67; Fri, 24 May 2024 13:50: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 1sAZ4A-00032z-W9 for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:50: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 1sAZ4A-00072p-Nl for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:50:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAZ4H-00028G-NT for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:51: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:51: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.17165730588190 (code B ref 71049); Fri, 24 May 2024 17:51:01 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 24 May 2024 17:50:58 +0000 Original-Received: from localhost ([127.0.0.1]:38314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAZ4D-000282-VL for submit@debbugs.gnu.org; Fri, 24 May 2024 13:50:58 -0400 Original-Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:36621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAZ4B-00027w-CR for 71049@debbugs.gnu.org; Fri, 24 May 2024 13:50:56 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id D4D5F13800DA; Fri, 24 May 2024 13:50:42 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 24 May 2024 13:50:42 -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=1716573042; x=1716659442; bh=PJa5IQr1J0CNHA6nQQwZrz2x55bPJVG3o9RyIniIgbQ=; b= FfEEJald9QOlFRSfK5PPXPu2s0LkHJt4UKEH3+sEy1f15a+brICBZJ/j7QCGGY3R PC0JN4RKp1CYNqV7GcQ6V2/lcBSLYwij/qP/SVmy22SJHb326MHDGZ+STl+O0rLD pEzdciK51QEGdC2rSYtJHAkoKg8ZK3P3MAsmGrb+7W0NW+avRn6OGH+f0SUcJZaW oIR+f46v8saCB4rCewpeAQimHEp/3bNjTCbJ1W40rjkU5LqqWmrBkfp2f67It2C1 bjxvD939Um6EoiUZJJ35OsToWDhSUgB48MJ8Mih591Q8qgwf3+RRuBRc771fES+y SbOdQI/430PdBdzf/g0ZSw== 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=1716573042; x= 1716659442; bh=PJa5IQr1J0CNHA6nQQwZrz2x55bPJVG3o9RyIniIgbQ=; b=l 2DPudgpyPUSoVHWjiQSJTNG40l1vT5Ixc51CYWgcJOmUFIJO3RzzL5poMxbJdoy9 8nq1+DTuvyCZlXB3x6eBRJxR+aabnYOfvgD7OgkS3tya4Y9O6bgrHpF/q8hviFhA ucGfKneMY+QVVdqdIyvby+29SDE3FgozGS/YAdYsOP/Hy33QZyYzpavlhPciff/P IkTMgSJgT57z5DPHgUstad7jPGMZshYK0UfRaXWvqq0lwbCaaxj0w1dyJVzVmvsH iNk4/ZO2mszaxEq/+ibTYuhmEaqP7xjdAcwXRHRsowyYOauSLATiqCzBoebjS41J PXMkIKKPQteJIlrW5e+6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 May 2024 13:50:41 -0400 (EDT) Content-Language: en-US In-Reply-To: <87jzjjf6q6.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:285785 Archived-At: On 24/05/2024 20:41, Michael Albinus wrote: >> 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. > Perhaps. I'm not an expert in comint.el; somebody else could do such a > change. > > And please note, that according to my analysis sent to Eli the other > message, half of the party (3 of 6 roundtrips) happens in shell-mode. So > we must indicate something in shell-mode, too, in order to suppress the > check for the proper history file name there. Right, the changes I described would be in comint.el and shell.el, not in Tramp (which should make things easier on your side - no new special variable). But there are 6 more calls to comint-read-input-ring (in other 6 major modes), so it would be a wide-reaching change. Not sure which direction will be optimal. Hmm...