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: Sun, 19 May 2024 03:27:30 +0300 Message-ID: <982c7017-0099-44d4-8619-49e99cc20f0c@gutov.dev> References: <3cbaaa39-c07b-4fde-bc94-0f3c6744e59a@gutov.dev> <87h6exdal2.fsf@gmx.de> <87a5kpd2iw.fsf@gmx.de> <87wmnstsb3.fsf@gmx.de> <87pltjxu8p.fsf@gmx.de> <87ikzbvu3x.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="8004"; 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 Sun May 19 02:28:29 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 1s8UPb-0001ux-7t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 02:28:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8UPB-0007uQ-PI; Sat, 18 May 2024 20:28:02 -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 1s8UP8-0007u5-Uw for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:27:58 -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 1s8UP8-0007rN-Lz for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:27:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8UPC-0005Bn-Ax for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:28: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: Sun, 19 May 2024 00:28: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.171607846419936 (code B ref 70959); Sun, 19 May 2024 00:28:02 +0000 Original-Received: (at 70959) by debbugs.gnu.org; 19 May 2024 00:27:44 +0000 Original-Received: from localhost ([127.0.0.1]:35644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UOt-0005BU-QI for submit@debbugs.gnu.org; Sat, 18 May 2024 20:27:44 -0400 Original-Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]:41687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UOs-0005BN-5T for 70959@debbugs.gnu.org; Sat, 18 May 2024 20:27:42 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id E0BA611400BF; Sat, 18 May 2024 20:27:32 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 18 May 2024 20:27:32 -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=1716078452; x=1716164852; bh=50KyMTFUt9DqRYNwy7Tke+Gk8fN1hdohoUJxnNP6HJ4=; b= NzSUBPrCbkc5r0NEy5cUjAfS3+i2cRRFLhVwDl6cnkyAgI/I4c/pncqgFJ+hjHd0 IWWEYE3PUU4BtLUsPifvdTX7h2dUYDPw+yQWlB3pW0eOJuBdOAvR7II/UmaBzXpV brlYTov5W4TujuAfy/8tw9b2NG4BdEzoW5vThfW0D0jNAu42Lb2m/M5aBW/ZLZAA 8zwL4/ZherhEzUkVelVL/0KYROoOhja3MOiDFIIO12M/+mrlDg0bss9LuBMGgX/5 6QjfHJ5sUNLtbl56WPKJpkdrj3/fQ1scXSzc5ZRqKvwKRuZhcc2QEe0kuwEGRCMG mch21O+86Q1KYOsAyHdzEg== 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=1716078452; x= 1716164852; bh=50KyMTFUt9DqRYNwy7Tke+Gk8fN1hdohoUJxnNP6HJ4=; b=e kBxFmS4n3Furn3eha87CKxDFU3xK8WeuTpmmruQIIAB/agb6OeSJVzz1MoWW7vie LKHUin4kNfT2ifAsBWyG1UcIkA0Icnj6yjrY0hvQ8RkssYwtsdxnKFnzXEpKcxus qDLDzFXgza6clXsDECg3hdPafhxLfdqGFsiQIRDIiug9Nd9Y71jMpEp3Ic/nF8Se oV7l1RMz1f7RN9iQveLRPLiAkbxGjgIy3JZTOIyzWMvdH5sDZbOgEjGXu6Ibml0V KrEwVCMHpNaCrZLankDRQRMySNlMCJNt+ETgegGhZAijrWoh8gj+vm8Byjz5nyvA LLZH1F6ujYqSPCGFQxVTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehjedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 18 May 2024 20:27:31 -0400 (EDT) Content-Language: en-US In-Reply-To: <87ikzbvu3x.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:285394 Archived-At: On 18/05/2024 21:43, Michael Albinus wrote: >>> You would do something like >>> --8<---------------cut here---------------start------------->8--- >>> (connection-local-set-profile-variables 'remote-direct-async >>> '((tramp-direct-async-process . t))) >>> (connection-local-set-profiles >>> '(:application tramp :machine "randomhost") 'remote-direct-async) >>> --8<---------------cut here---------------end--------------->8--- >>> `remote-direct-async' is a profile name you could choose >>> yourself. `tramp-direct-async-process' would be the respective Tramp >>> variable. >> That looks very reasonable. One bonus is that the machine is specified >> by the hostname only. >> >> Which would avoid the difficulty of tweaking the regexp (e.g. I had a >> problem - on a different machine - that my url included a port, and >> that needed to be reflected in the regexp as well). > Try the following patch and the config as shown above. Seems to be working well, thank you. Except in my case tramp.el was inside directory lisp/net. And I guess the code will need some backward compatibility path since the connection property was there since Emacs 28? ;-(