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#70959: Tramp connection property can interact weirdly with cache Date: Thu, 16 May 2024 20:14:25 +0300 Message-ID: References: <3cbaaa39-c07b-4fde-bc94-0f3c6744e59a@gutov.dev> <87h6exdal2.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="3995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70959@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 19:15:59 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 1s7ehy-0000pK-RT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 19:15:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7ehQ-000645-0U; Thu, 16 May 2024 13:15:27 -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 1s7eh4-0005vl-7b for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 13:15:02 -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 1s7eh2-0007nw-BX for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 13:15:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7eh4-00018H-9a for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 13:15: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: Thu, 16 May 2024 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70959 X-GNU-PR-Package: emacs Original-Received: via spool by 70959-submit@debbugs.gnu.org id=B70959.17158796804326 (code B ref 70959); Thu, 16 May 2024 17:15:02 +0000 Original-Received: (at 70959) by debbugs.gnu.org; 16 May 2024 17:14:40 +0000 Original-Received: from localhost ([127.0.0.1]:49918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7egi-00017i-B4 for submit@debbugs.gnu.org; Thu, 16 May 2024 13:14:40 -0400 Original-Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:46705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7egf-00017c-8V for 70959@debbugs.gnu.org; Thu, 16 May 2024 13:14:38 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 5785A1380E32; Thu, 16 May 2024 13:14:29 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 16 May 2024 13:14:29 -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=1715879669; x=1715966069; bh=/P3l3ItiQ4AfgGmj3EOnVIf4zct1ynlkQMf/Jzguucs=; b= iUFrIWzCcFb6wx4BzTpm/Eq6nG/bRfi7ie62z3705Uceq+mzB2AjZxQZdnO4qYEm GlqUp6GdF2zSI4lnjRfHZDrSp5oDaif+LLJunpvixpgeT1nqdJr/VOAVngCqRdez Dwn0BBP44GgOWh0vGMou0a0LAG50XTq+PJTz89giNJuMioDiYKRgV+VljDb9i29p ogzUbM/QBP0Yr/IJCETuzYgs9CRoCzWA5MH3uRSNou2grgXjw+vfquqyPJzB1bXH KRu6YPUK4NRi+LEMd78UGI5KDusNySjkmwz4rM61cGLReimf28eXaPbg9ctWoT/D qn6YYZe26HW4CDQTqrlfNw== 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=fm3; t=1715879669; x= 1715966069; bh=/P3l3ItiQ4AfgGmj3EOnVIf4zct1ynlkQMf/Jzguucs=; b=C tNE1bDdFKFVXdkz5S9Y6dYwrON9E84zBqxTEHO8VVNXV3xjFHFbfiIBNx57vSoun /F2Jaw0BoD6c8lCdNW8YswzRrkbG2swibbYg3Z/paZ2xUTThtoxnPh6VTvlvEICD 03s0lepjqQPl7XMxlIESPQdSjhDOwPmo17o8tEnPdtZAKLciydJHiGdgVt5/xzBO r1IWDm7FWa4B/yHwA8ZHXV1XcPi2WFnu2fUMXic2oT1rPbsncUDFtMJK9Rxn2hay eaVOAU8eRY8LP3w2ShM83ZFHW2W/Asb5Np0Ut5Hu0jwecDWWHNxA3DKrIzCBl0iQ 7bcmSGvD3lcRqobTGl1dw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehuddguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 May 2024 13:14:28 -0400 (EDT) Content-Language: en-US In-Reply-To: <87h6exdal2.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:285176 Archived-At: On 16/05/2024 18:45, Michael Albinus wrote: > Dmitry Gutov writes: > >> I've used the recipe for "direct-async-processes" as suggested: >> >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:user@host:") >> "direct-async-process" t)) >> >> and at first (the connection was already open) it didn't take >> effect. I think I had to kill the connection buffer for the new >> property to be used. Would be nice if this was instant. >> >> But also, after that I tried altering tramp-connection-properties back >> to disable direct-async-process for that host (for the purposes of >> testing and measuring things more precisely), and found that changing >> the variable doesn't bring the new behavior back. Restarting Emacs >> didn't bring the old (non-direct) behavior back either - I had to edit >> the ~/.emacs.d/tramp file by hand to remove that property. >> >> I think that's something that might confuse other users. > If you want to remove a property from the cache, you need to call one of > the tramp-cleanup* commands. See (info "(tramp) Cleanup remote connections") Thank you. I suppose this is well-documented. But as a user, it's not apparent that the change in the variable wouldn't take effect right away. Would it be difficult to have this connection property (perhaps all such properties?) to take effect right away? Does caching it improve performance in any realistic scenario?