GNU bug report logs - #70900
30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dmitry Gutov <dmitry@HIDDEN>; dated Mon, 13 May 2024 01:04:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:30:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 07:30:29 2024
Received: from localhost ([127.0.0.1]:60419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6Tsy-0004ht-LM
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 07:30:28 -0400
Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:55403)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1s6Tsw-0004Pb-QV
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 07:30:27 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 189EA114017A;
 Mon, 13 May 2024 07:30:21 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Mon, 13 May 2024 07:30:21 -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=1715599821;
 x=1715686221; bh=E0G5qEGLOvTqLLZL7ODaO7sAfHfGz8mAG3fBOs88L64=; b=
 HVhKavyo+xnyyQ4zAZhZIOuMoXts7MZAzWPZAk5dh4Hv5XU4wapLYmPZvdeysACS
 Fh3kRyIS96K5rvcjG/vMUoVqYE0X58QZ29lAsA3EWn70ztlHlk35cA0PkMSvq6K9
 eXR1S0jvqV6HZq3B9gSAVpDABlxUkVKkubC5za7puM/oCWR50jaeO5NnOlMVF1W8
 d1YjPxQIvcATAbKrlMOksyUvZ1FqFS8RlJNYqyVXf7wArDsPEgteDel+iD6Bet3i
 DdfGA03+qEEaRbIidUAF2L+jYvoDQYcPbOCwqRwJOiLG8yGVKDLeR5g+/H7B+Htb
 lBQgo0HK2J0vA4xJwlCnCg==
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=1715599821; x=
 1715686221; bh=E0G5qEGLOvTqLLZL7ODaO7sAfHfGz8mAG3fBOs88L64=; b=B
 bD7eqcBmx7qlwdDQ98oA3Rsv3lzlq1Ni/bmyDxM15Sm/M0+lqS9NuknZ9kfvpwRv
 09Go9xOpNmzNf2W16oN/NAMwTJuoBvi0kJilcnnb4ffkZGboaJ0TL62AZE41vpv4
 4x0gi0cEBwWuWecHnAL1x8Nc3GG1DJmdkFy6zNpAxkNMBPEGzp5m/zQ8qWDvXEBO
 yIRRSpBiZMZZbZ7dDHQt6EWSnXI9Y3ze5NQhuqx7BZGozE4iece9Si8Er66zsPEY
 3wxpjdaxrNpA4q1bZBiew5voRYqpP2jafbJTXLddYiomfeBISf8W8CjtAv/7wYPk
 H0yaZtjhRaMorh9cexw/Q==
X-ME-Sender: <xms:zPlBZsIQKHi19U4TxECDZwO6N0w3sWj02apR8S9acBD5OiTyHvXMYA>
 <xme:zPlBZsKK6x5rfyK0QcamD6KzYRnSQwAHUKUbOs0mfME5S_yvA3E8pIYqQA7-efXU1
 0IxFDuo3sZwczwa-hk>
X-ME-Received: <xmr:zPlBZsu4LOd8b8fDwbYA6FqJCvNtBDTppSARzzsh62GOZpAmPgWZp8CW1GWvTEVEM_Rr>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedggeduucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu
 keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:zPlBZpZ8GEbWZEHuVt289d7DVNez8uoa6a-fDlcwmqmjSd-OG9SMIw>
 <xmx:zPlBZjaU5wJ4-SLY5nsMeyIS6SeUJRhftyh6LiJi6rTpz0YyCumjiw>
 <xmx:zPlBZlA7cUJ0ssWXKFBqnSsDiZ8TmUypLngXQe57HN59Ii6CKl5R2Q>
 <xmx:zPlBZpay3YUQ2MfLBpH-hH_m9eiVv7px5DgggVagb5lQ1-RJ9XoMZA>
 <xmx:zflBZimygOc01xoOdEA7YbeFa0J_B21mEQi6qf8bg8joP84uMkxlcBh6>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 13 May 2024 07:30:20 -0400 (EDT)
Message-ID: <5235ea0a-5481-4490-8e09-6ceada5e08bb@HIDDEN>
Date: Mon, 13 May 2024 14:30:18 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove
 lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is
 non-nil
To: Michael Albinus <michael.albinus@HIDDEN>
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
 <87r0e6gsqa.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87r0e6gsqa.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70900
Cc: 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 13/05/2024 08:56, Michael Albinus wrote:
>> BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the
>> performance section in particular).
> ???
> 
> In the Tramp manual, node "Frequently Asked Questions", item "How to
> speed up TRAMP?", there is
> 
> --8<---------------cut here---------------start------------->8---
>          − Disable file locks.  Set ‘remote-file-name-inhibit-locks’ to
>            ‘t’ if you know that different Emacs sessions are not
>            modifying the same remote file.
> --8<---------------cut here---------------end--------------->8---

Yes, sorry, I see it now.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:30:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 07:30:17 2024
Received: from localhost ([127.0.0.1]:60415 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6Tsn-0004DF-82
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 07:30:17 -0400
Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:44157)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1s6Tsl-0003pZ-E3
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 07:30:16 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailfout.nyi.internal (Postfix) with ESMTP id C575B13810BF;
 Mon, 13 May 2024 07:30:09 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Mon, 13 May 2024 07:30:09 -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=1715599809;
 x=1715686209; bh=c5aMvXSMyFk6+GP7wviyfMe3XdWfOh2NUywDee8vJ8Y=; b=
 P2vaaZg9eIGisvjyPLHaI++ILBACu9QRnplXGG8cl0NyLNk6kMGbDmp7msvGHDfQ
 WKL92KJZJaCMmZwsaetXQ/7weWG+GkULU2c0IeDd9CKjpzYpv/9dvV1TUHytTjtU
 hDRVafKddl5jRdeEhnsDY1F97tWdf6mu75TMm5js98M2aiF2kTDNP0cDzGgzip7g
 SVHprIBD6Q4G5UaLO6bI7+Fw3J3s1BKINMaSoi2ya/wXk1ytySBKhw22+vrexOMn
 FPnBwqWFBcb+ceg/GPdYiiOmOjxpH72HA4IqhHJai2K+kBaTUzwtZ9PJ8t9Rpn9o
 /ET7BCGr3AvDqM3X267rFw==
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=1715599809; x=
 1715686209; bh=c5aMvXSMyFk6+GP7wviyfMe3XdWfOh2NUywDee8vJ8Y=; b=Y
 28RgyhLWHgkjFlbtX4WiQCSGOLpAuIVlgQsHdQNR/ReHQWlI7DR9a9SoedYYfx3x
 R5J7u95WwuCzA/AdMe86OO5Fa2XSusVhg3BahwZs8oXQ6oPK4Po2kAWuO3WeW/vh
 NPES6I2WfudByMHujI05u/0abpUFWcRuY+10BMYo2+xJKVyDKDdSZPXS8v36y4cR
 VATggWMolLdVH/k2/a3xHZbWBObD0crEtmhyjUP5m6IrzZ7wkb87viV8WUmseNV1
 8uKpTotVhCxTdD6i0vVV0khDiHB2CdmukCja3EVgW9j0vWBahC3YVPK/djriv6qa
 ZTcaXA/jS+F02w+s7ffkA==
X-ME-Sender: <xms:wflBZt_ZzFRYdkcq6UY1czTDwK3KNnTYuuYQ-To6awcZS-TD0ZOCgQ>
 <xme:wflBZhs6gaphgsM6eFd7JOsqz41x5ZhQG0cURhG1yyGdwn3-bze6X2TwPkkfDO7L2
 oA89KDYQfjAQ-11ZI0>
X-ME-Received: <xmr:wflBZrBXfqU9-dWbzXXfhizSF8R4UMx4xBAUx_loTZ-r5TevZey45xxFVCSaYZ7h6cyU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedggedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:wflBZhfitrTVYyG26ZfsRsgwOmqaX7N0jl2VKSO0lidjCWgjT_Syjg>
 <xmx:wflBZiOydtw14x_YgJC0Db3Ay1YkzMgENtdEyuCBIuC0Yn8QrOKnIA>
 <xmx:wflBZjnnv5VJzsLVs0NxJ-gbU-ZLeVCC65HXTQ47lQxCyNehF9tMvg>
 <xmx:wflBZss6nDXIyHl3XrMI4VHcxr6TrwhEV1hyhbJJ0IXAzystLlML5Q>
 <xmx:wflBZvqaPjaQCAV9bTf1RjPMOvcMbq_B39hGtLY64uFOVy3CSRQROuBi>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 13 May 2024 07:30:08 -0400 (EDT)
Message-ID: <6d8ed744-c05f-4d83-b769-dff6b5ace405@HIDDEN>
Date: Mon, 13 May 2024 14:30:06 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove
 lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is
 non-nil
To: Eli Zaretskii <eliz@HIDDEN>, Michael Albinus <michael.albinus@HIDDEN>
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
 <87r0e6gsqa.fsf@HIDDEN> <86seymxkub.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86seymxkub.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70900
Cc: 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 13/05/2024 09:54, Eli Zaretskii wrote:
>>> It would also make sense to switch it on by default - it has a
>>> noticeable effect on performance.
>> No. File locks are an essential part of Emacs. Disabling them has the
>> potential to damage something (see above), so it shall be decided by the user.
> Agreed.

In this aspect I'm commenting as someone who sees user complaints from 
time to time about how VS Code or etc are faster at remote development 
than Emacs, and now saw this myself. This particular issue looks like a 
speed bump that could be removed for good improvement in basic latency.

But perhaps it's better approached by optimizing in other places.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:12:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 07:12:07 2024
Received: from localhost ([127.0.0.1]:60335 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6TbD-0003AK-Cg
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 07:12:07 -0400
Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:47107)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1s6TbA-00039p-Nj
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 07:12:05 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 1182C1140081;
 Mon, 13 May 2024 07:11:59 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute2.internal (MEProxy); Mon, 13 May 2024 07:11:59 -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=1715598719;
 x=1715685119; bh=L9jHARdljHsu3692KdlNK55IInk5fTE0tycP2MMEszM=; b=
 AgLFQeJ409Ba23onMhxMvg+zhCBmrjW7aFxIlygCugFovtWvGbKUaMGbyzcqn3EA
 GXj4Y242Y9+BFavuAURDq52kYsaOQu2cemso+JbRA7h9fp6Uw1lKQshimkg21E0F
 S26koyETx7PXGeiEj/qI/Ah+T55HZY5MDfd1PytTFvgKAixAUHp66xrPqLsU4epo
 xdk58KcJ/mTFmj+Kbh5zudMx9LDnhxO4Im+waBGHh8+CHnus8mT5ZLaqRd9E0ngf
 PDEhF7+CH1IalJxsxRFWUHt+FXnYP9+2iwcX+0XYHgHIpZVpJQTc+mAT2Guv3EVE
 a7y1WoatoeztztTxZZHU+Q==
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=1715598719; x=
 1715685119; bh=L9jHARdljHsu3692KdlNK55IInk5fTE0tycP2MMEszM=; b=O
 I3IP3Dno63S+SUR+PKuBZrJCuxsarn98RDntxgZB1Z+zYy5c8UqGQQcQccsA0F07
 EL7Dlhi7UGgLMRxwh0pnLUVfgAXfSeSW7uQv0BusIFq8Xkg+Htjea6UNQF1yYQ8B
 y+BX7+3JvH0GFFdr0Nt6gNC9xbWxtK9/Kp+MRX5VbDn1t3ll3v0/RCTKz2x3FOJz
 I70/EBFKd13/uvB3xKWxjZDs+0BBfZK0NJP9fjKRRECgLoYlyDt12x3ri8trW2tx
 wtYAB4m1/CVUQ6bQa9TReR5Ub/OaNp5GA3bPALl7mu6cwILeq3P3wxpvCmqwtSO/
 V10I80tVXOLudpHYdYedg==
X-ME-Sender: <xms:fvVBZl8mfqFutbmUEBE0xlmLhaI-h5z27OGIclLB2L-gYwiVmdHbaw>
 <xme:fvVBZpvMuSKmDT_YwZA3JptbL4NXOrLsZe3W8lVFh4p_758hKVWuI5od-n4YE5nfw
 qyeFhECkIMDkyMM2DY>
X-ME-Received: <xmr:fvVBZjC4M7fK1Orwwxs2rdVAbGB9chYWSfqUl5ne0XDmcd70sS93YoKjt4fyuJNttUqu>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedgfeejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:fvVBZpf4oynD4qZIbH-UTvRNseg19DuviQpUJ814iAT2g0ZB01DtwQ>
 <xmx:fvVBZqNGoGXT99wc_sBDqAhxhgtu7UA55QMqeDUNcwPAsZ4hQ-HsRw>
 <xmx:fvVBZrkh3z3IPaYwozUXFH5NribChRl_LaU0HlUUIpI2KFKuS-IlUQ>
 <xmx:fvVBZksjd8dXX7Ltwp8yGTBvODBJqByBpensvZP3PqvbEvT81ERo7Q>
 <xmx:f_VBZnqlGjyRYTFBCVIKSUdwMpbEL3k0w0fTXhErK3BRu20CCn_uj-U9>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 13 May 2024 07:11:57 -0400 (EDT)
Message-ID: <fc860cad-bec3-48e6-99d0-85b51a6bfc08@HIDDEN>
Date: Mon, 13 May 2024 14:11:55 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove
 lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is
 non-nil
To: Michael Albinus <michael.albinus@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
 <87r0e6gsqa.fsf@HIDDEN> <86seymxkub.fsf@HIDDEN> <87frumgogm.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87frumgogm.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70900
Cc: 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Michael,

On 13/05/2024 10:28, Michael Albinus wrote:
>>> The description of remote-file-name-inhibit-locks says "Whether to
>>> create file locks for remote files.". And this is what Tramp
>>> does. Nothing said about checking/removing of lock files.
>>>
>>> If we want to suppress these actions as well, we shall agree about, and
>>> change the doc. Eli?
>> I think making the failure to remove be silent in this case is enough.
>> If the user sets this variable to t, they are not interested in
>> failures to remove lock files, even if it's for reasons other than
>> "file does not exist".
>>
>> IOW, it's okay to try to remove lock files, but if that fails, Emacs
>> should not display any error messages.
> Done, pushed to master. Anything else, Dmitry?

It's a good enough resolution for me. Thank you.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 07:28:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 03:28:56 2024
Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6Q7D-0006RF-S8
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 03:28:56 -0400
Received: from mout.gmx.net ([212.227.17.21]:60193)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1s6Q79-0006R5-Sc
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 03:28:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1715585322; x=1716190122; i=michael.albinus@HIDDEN;
 bh=3UVbQ+qyPki9wBcf7BoS2iIo+Nxyq0hVWdkBTK+5fg0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=TNbeesE0UMw+xxDak9+tzWYAhb7AgwkDwBpENM+RibV/16m/0FIFA2bO5pAwRkyH
 21Avwof+0k34mkl1xJZPfAKehtEk7/QwhK6JlN5yOfV6cA1Q7NnoneQvqWZU7NV7d
 wKpkbmlrEWM2PAkzH3GH4p3mPHxObaxDzdVT84Kf5FsQs6Oh1Ez1qAWRhVP2AaKj8
 YKk82hb4pDAcCWGRHHXkq42CXF9r5iQ2tQk71HTB4fFdW/4vxaCmydT5wmJCZ4WsX
 Nlf+gvtZqlHvML/dE6Z1w/jGsPWibD4/YJfz/NxjE9X2TzGcVJiyuWwwWvMklyyDI
 wdMNoDHVWq/8HBTIwQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MA7KU-1sI0x626o6-00BbmT; Mon, 13
 May 2024 09:28:42 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove
 lock file for /ssh:..." on every save when remote-file-name-inhibit-locks
 is non-nil
In-Reply-To: <86seymxkub.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 13 May
 2024 09:54:52 +0300")
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
 <87r0e6gsqa.fsf@HIDDEN> <86seymxkub.fsf@HIDDEN>
Date: Mon, 13 May 2024 09:28:41 +0200
Message-ID: <87frumgogm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:8ilzO7MA7jVVIs5tTlT7qO7cjMlsWAwpRzAYwjySfwXh4loYCvw
 y02nmNzHUNN8tDkSXRGcltVHM7jnQjsPpohHiK30yAapr4UUAF+bMPbFSqV8oKyjGU4cahK
 TIWpdpZPApOliSfWJ1UUrVuLipFwcHOeseEKGjA2ikV5IcNjrgME+LY4YI8bEW35oAM/Upx
 eVvtvJFm0giILxjsz5c7A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Gjn6N0OmgYo=;CiLVtkUoKwiskzOWFHHnzJusJ1Q
 RWCJ/Y9LXrjLknEKUH3s/gTKZyD5rWQLFJe46j24po+sQEb0CRQo7ZK4HOUk78yI/0BMc3dJU
 20fN1Z5z3JLjGiis48484+fApNMLlvrw7I4Vbk2agji3qPiaV7r8/4ANA+WfcbR5VYR2XGsub
 D8XgjCslx3m1zWQ7QLot4R2VxaicsZ7JCGyUXz+/xwv+eAQPeSdBM4OgGoq28+JEoT8HsEHvh
 F7mkF6VfGxtnQYezj8CULuWbXBxLUT6YUuPBRBA7LKQSkEXX9H6PkWx1bmeLW5tqvOMXMgyos
 mAYB+Ov/Iz3h3wxmpfOXmuZwG4VIUI6uP/1bFIaICAH0HiIqM4Sybi22hjXoLu5BYGL0GOrTG
 pzXZ5egkJsVVc1SnJS6vHsEuBaMQm9kJlu4+x8iZ0ifD6XZGAq2brcGR8/bTwrHsntpKWAQQl
 Xi2y8NUbNn78RRw0Si0LB5GvOSViScPhr2runefNtuEAvfwIkpVuMcAzP97XYTbvbnQQmMX5y
 KqwLNg8xlLMfJFRX7qGWqNGC4sAY+KXeE9bDnTiohw+FdQc5vzRfXT5zl80oDHi+WkCYIt5Gf
 NEkUxq3qsGYmdoh77UDvZWqW55fQczp0FIdJLFheXTbnkidPjxVhNkLLbTO3a+u1AE9bl40Os
 hXV4XsmYN1HRyFltTw4fVo7koK25DyUuaXaguJB7ii1GMp9rzG3MeS/gowGMDcnNdq6zFk8MG
 9AkEfS1HsBmmT1iXW0OVnkHYWHVtbNkQFOUIUqpul3YxbG2h1rXGznHwMqWOw5CjJXdrYgN0O
 3dkZL+TfKKk2xwv8t3ke08t7aFVSRSSRtyEJVbjMXPZ3k=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70900
Cc: dmitry@HIDDEN, 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

>> The description of remote-file-name-inhibit-locks says "Whether to
>> create file locks for remote files.". And this is what Tramp
>> does. Nothing said about checking/removing of lock files.
>>
>> If we want to suppress these actions as well, we shall agree about, and
>> change the doc. Eli?
>
> I think making the failure to remove be silent in this case is enough.
> If the user sets this variable to t, they are not interested in
> failures to remove lock files, even if it's for reasons other than
> "file does not exist".
>
> IOW, it's okay to try to remove lock files, but if that fails, Emacs
> should not display any error messages.

Done, pushed to master. Anything else, Dmitry?

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 06:55:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 02:55:08 2024
Received: from localhost ([127.0.0.1]:58908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6PaW-0003Fa-9e
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 02:55:08 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60676)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s6PaP-0003F6-JP
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 02:55:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s6PaJ-0007UM-7d; Mon, 13 May 2024 02:54:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=4/+fVTQzq55Z+smOJSQXqBET1cVCSZi5z0QLgXcqMYM=; b=POi0gIDZZwo+
 OjymXa8yn2xgEzzq74TdLJpJXmg/jK9ElvPBqMkhp0g8l9S/JVs4CFABwax/IAsQ8mRzXYkgII2OP
 g6XL0Fbep+EKPF1po271vWsijhWgf3IO+T/l++Ym8uJoSe56U9jI2vyOtuzyUkn0jkLI8YkQNfyME
 l1HOVsYgr1cY90EXXCg1VisykffILFD7AJXBXu2opaPQPkUo4NiGj7U2asLrc5C7z5O1z+fNI1C/l
 NItGh9EOlEh6wazTiuABewrz6WwQaVP6T1JdwgU3L8IQ4kC2EoX4PunlJEmJs/IXBjsfopVnha6rZ
 DNTzV50Hh2bE31l3swQtPA==;
Date: Mon, 13 May 2024 09:54:52 +0300
Message-Id: <86seymxkub.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <87r0e6gsqa.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#70900: 30.0.50;
 tramp complains "File error: Cannot remove lock file for /ssh:..." on
 every save when remote-file-name-inhibit-locks is non-nil
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
 <87r0e6gsqa.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70900
Cc: dmitry@HIDDEN, 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 70900 <at> debbugs.gnu.org
> Date: Mon, 13 May 2024 07:56:29 +0200
> From:  Michael Albinus via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Dmitry Gutov <dmitry@HIDDEN> writes:
> 
> Hi Dmitry,
> 
> > 1. (setq remote-file-name-inhibit-locks t)
> > 2. Open some file remotely, lightly edit and save it.
> > 3. See this message in the Messages buffer.
> 
> The description of remote-file-name-inhibit-locks says "Whether to
> create file locks for remote files.". And this is what Tramp
> does. Nothing said about checking/removing of lock files.
> 
> If we want to suppress these actions as well, we shall agree about, and
> change the doc. Eli?

I think making the failure to remove be silent in this case is enough.
If the user sets this variable to t, they are not interested in
failures to remove lock files, even if it's for reasons other than
"file does not exist".

IOW, it's okay to try to remove lock files, but if that fails, Emacs
should not display any error messages.

> > It would also make sense to switch it on by default - it has a
> > noticeable effect on performance.
> 
> No. File locks are an essential part of Emacs. Disabling them has the
> potential to damage something (see above), so it shall be decided by the user.

Agreed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at 70900 <at> debbugs.gnu.org:


Received: (at 70900) by debbugs.gnu.org; 13 May 2024 05:56:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 01:56:45 2024
Received: from localhost ([127.0.0.1]:58660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6Og0-0002gN-Kk
	for submit <at> debbugs.gnu.org; Mon, 13 May 2024 01:56:44 -0400
Received: from mout.gmx.net ([212.227.15.15]:36069)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1s6Ofv-0002gF-59
 for 70900 <at> debbugs.gnu.org; Mon, 13 May 2024 01:56:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1715579790; x=1716184590; i=michael.albinus@HIDDEN;
 bh=sOUkBDCxHrOCNbtjKzO6VR0a/AqJKcQ6Cn6a5EWR7Ys=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=DnvC1nS3doHrexrPRxWZy14ADYhU6WurXfQ4nlBIMcBij8ZMKi/6fzD7tszqn7Gy
 C5uAj7jqk7HaYApbgOKj+55KIEXyJQ7dWl56UYpMtbOp8uwJRg6oA0AEHysgYHEb3
 YfMHng+0X0vEShBzEdxsLaTrsEFJAbikEWU6iV7ti+R5Y2Jr61dqAQ2ed2S/KSXha
 8Zg4353Tz5K2dsJxLye2AgqODDbNu8y8FpsuQxv+WgK02ztehZEwnj4ghB9NxMOgM
 Nuf6FN1BEpI2HVloFqGorzxhpIbA+Sk66ObyGdG3YTzQCTMkpzRRHGW9kmanV8JYR
 H04v88yklCaXO39HSw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M42jK-1s6Ofl42wC-003OCe; Mon, 13
 May 2024 07:56:30 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove
 lock file for /ssh:..." on every save when remote-file-name-inhibit-locks
 is non-nil
In-Reply-To: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN> (Dmitry Gutov's
 message of "Mon, 13 May 2024 04:03:43 +0300")
References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
Date: Mon, 13 May 2024 07:56:29 +0200
Message-ID: <87r0e6gsqa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:b4awT7HTfFTn5jCPeGt+g1MMxXPUSSlSS7xdz/VdBV7ASLznuJs
 x77459iAa7x2gc7Lr+9RMHJd4yvew04AgAqZX9koWG8QzpWtygUSC1y7iJbMPdklD5XQGDe
 b+tbJ4wDAmXt+D613uIaNjyz7UdVfWOup8/SUROdiEPGNIC3YbgzwtD/r7UkqWNGWeJm6VT
 mtxA/gRoBtXPK0CvVPLAg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:j8ZaWlimbGk=;oPnbkw7UKkwXbqTI2LNSFMsR3At
 PKeLZ3qZXAUOyVyAdkmHQzxYPVIlXtdAgxalzPSOr/gzWE9FBw0r2o1ULu2pe7pHEZG5mu9hU
 7SCV/fmR8EKMrmL+qizbVhT0CSYgmt/6f80jTPbkxJCT5nL5/yE8yTQCh4jUK2evwkXC2pTOt
 07vA53fhqXvN0qmVsf4Jo0l1Ev7ThRnvzMZVz3om8YCZBl0BT3oQcdsCMkeQymZcY5AcJLJFC
 SNeB8OAGIAL3uojhmv4A9N8SnCcbENq1YMW/xsxefIZhmzVvRJBKLZcSuaCJOiEFgQ68+0bac
 SXXPMKigoinnfc7tZ46koPDHGskfLX905OBkklmoDM6HzxuypBnfbDS453kaEMUfmzn+8KuA7
 yXK+gUft65JIXWjuCw5NXQuwmW0MxYh4tAcd9/m8VnsAe4smLhbL2DyHeluRLrN82yRt8yGCw
 G27bdt5HSChcCoLmNnikl3NmU6rCYBYCxNGxHynTIdZKHK3YyS2Ofv/ZWfw0UjetRBAWrGZ27
 s/fkCg6iyzDsVxt9yc5CaXz6WxcucHceLHC7JCtsVxWA9BKDlvgw++/iRGPT7ABokij8I6Cu/
 +g+/eYihwKRsIVIkRGS2ocsAvre5mF2qXJrCiuLxMckCUlJKrj7znUbt+ol7pn0feyo6ZdEXq
 GCYUuvTwl8VcddzKYqayuZ82hO4fWpjb8iNTkGtpymUnPLN8tEfZ9lwPVnWGQYd3EgN65cgFB
 NHAVUUb9Dzv9eilysG6wDwPAgDsbnRTg/LRszXlaN2Hb4EBcIm+YPIf6+K/pfd3B+b6vXsL8t
 C5Mv2C+gjB2Y2OvlAZLoJzZDSSx9+4SoNoX7v2bw0UWyM=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70900
Cc: 70900 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

Hi Dmitry,

> 1. (setq remote-file-name-inhibit-locks t)
> 2. Open some file remotely, lightly edit and save it.
> 3. See this message in the Messages buffer.

The description of remote-file-name-inhibit-locks says "Whether to
create file locks for remote files.". And this is what Tramp
does. Nothing said about checking/removing of lock files.

If we want to suppress these actions as well, we shall agree about, and
change the doc. Eli?

> BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the
> performance section in particular).

???

In the Tramp manual, node "Frequently Asked Questions", item "How to
speed up TRAMP?", there is

--8<---------------cut here---------------start------------->8---
        =E2=88=92 Disable file locks.  Set =E2=80=98remote-file-name-inhibi=
t-locks=E2=80=99 to
          =E2=80=98t=E2=80=99 if you know that different Emacs sessions are=
 not
          modifying the same remote file.
--8<---------------cut here---------------end--------------->8---

> It would also make sense to switch it on by default - it has a
> noticeable effect on performance.

No. File locks are an essential part of Emacs. Disabling them has the
potential to damage something (see above), so it shall be decided by the us=
er.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 May 2024 01:03:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 12 21:03:56 2024
Received: from localhost ([127.0.0.1]:57417 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s6K6d-0003vW-RG
	for submit <at> debbugs.gnu.org; Sun, 12 May 2024 21:03:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:60428)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1s6K6Z-0003vO-6r
 for submit <at> debbugs.gnu.org; Sun, 12 May 2024 21:03:53 -0400
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 <dmitry@HIDDEN>) id 1s6K6Y-0001o0-OG
 for bug-gnu-emacs@HIDDEN; Sun, 12 May 2024 21:03:50 -0400
Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1s6K6W-0002YZ-Ob
 for bug-gnu-emacs@HIDDEN; Sun, 12 May 2024 21:03:50 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailfhigh.west.internal (Postfix) with ESMTP id 480E31800115
 for <bug-gnu-emacs@HIDDEN>; Sun, 12 May 2024 21:03:47 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Sun, 12 May 2024 21:03:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:subject
 :subject:to:to; s=fm2; t=1715562226; x=1715648626; bh=/S5hjs5jaq
 LlJno7FSXFP1JSHU/apDicE0U2tPMCG3A=; b=R9DAw+12gsD8aweyTbDBpUKS6R
 lIJx6c3Lw4EkHRHdcdI99zzWx3G7NPlAnAwoy0YABSVK7UIZWA7iixpJFUe96t3w
 omeH27k/2KA9zzRKwzThe+ysAg3gI68xKSkeqUMH8eMB/iYgeiP7nMMO4BlvSIdg
 h186GQemUYnQZrAdRNhSpCW+Gqqabs3zSBc6gziF1l5VBNoDgfPLJhSpV3we6mok
 hVcH4OBsx9LjCYSt78/xHDC8aTHwaHq8VJkG3ikuhN1rpiXbLPSW61ANIdrkGYAC
 BvRoj6UIjEkb7KNrBu3gim5Nhid312vDWlet5B2sp3c9kmsd+nT/i2uw4VLA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1715562226; x=1715648626; bh=/S5hjs5jaqLlJno7FSXFP1JSHU/a
 pDicE0U2tPMCG3A=; b=aRx83Ns7wOwouvgxqCWtkC5Al+Eo4GT9PcKI7V7LGGhb
 zUKoIy7DIT7NLYlt0g31FNr64Uzntr8zH+OFKPRPSpIU1sQWNHVGS9/om0yZEEFm
 TkA+enPu57hL753lrRpzbxl18ZS5OCQ6bsdjwj7L7lzOt5/8J2GZu4gaSPsk3Xnt
 8UivPA571YYv9RWlnYAm5Web7Wt74eXaOXF0677N8qcvX7v7M/Avb1FvmEqyU9aY
 TQf1LSjaE8e/s8f3TXYrmnGq7/8gP/j0uAZjNlklaPZ0D+IMHcwyyxfw4WhDdDiq
 7xS9nkTQkUe/R38Djz+l7m42I2++tQsFqmg+N7ZBbw==
X-ME-Sender: <xms:8mZBZm-eDngvKMk-qu9_f4KnXWg3Lv592jBWORNDEBv0bkbNfmH4JQ>
 <xme:8mZBZmtL29jyrgU1rpVrC0_Zdx6nbWpuuL2PIlY45xF1xOmWiGKo3O_pTJAgfJZVa
 A_vtwiovYY-TRyF8Rk>
X-ME-Received: <xmr:8mZBZsCWJaPoHltO8KBaOVEVA3o9OMyGeKmLNsR7twiNysD8TF5oR0Uy8Er8Y7QjJbpJ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdegfedggeduucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvuffhtgfgsehtjeertd
 dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho
 vhdruggvvheqnecuggftrfgrthhtvghrnhephfetveeuhfdvudeuhfevhfeukeeiteekle
 evtefhgedvfeefgedtffeifeethfejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr
 rghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:8mZBZucbVfp4KYmn9mi1F4fr1Vvv_-VeJxjFggOmGm0r06oNBPGgsA>
 <xmx:8mZBZrMvhlRC6KsW1vh_mjm4wYNE18jy6AbshFxjDJOKKc9_N5GUHw>
 <xmx:8mZBZom95z98ya1RHkPzxbta9FRL6ChpVfPphszRryLIExPjrOne3A>
 <xmx:8mZBZtta3mT93-GSb1x4aw6Ek7dJSv2Z_7r4UouUc2fT48nqgAo66g>
 <xmx:8mZBZh0dB77YBVKNYWH4WpDi_pCgQulsqe_EGPToXKSQvA_ImuZNsoAf>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Sun, 12 May 2024 21:03:46 -0400 (EDT)
Message-ID: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@HIDDEN>
Date: Mon, 13 May 2024 04:03:43 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; tramp complains "File error: Cannot remove lock file for
 /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=64.147.123.159; envelope-from=dmitry@HIDDEN;
 helo=wfhigh8-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

1. (setq remote-file-name-inhibit-locks t)
2. Open some file remotely, lightly edit and save it.
3. See this message in the Messages buffer.

BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the
performance section in particular). It would also make sense to switch
it on by default - it has a noticeable effect on performance.

In GNU Emacs 30.0.50 (build 7, x86_64-pc-linux-gnu, X toolkit, cairo
  version 1.18.0, Xaw scroll bars) of 2024-05-12 built on potemkin
Repository revision: b20d4ab374fb9b3c80b968df6acd6444f763bd40
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12302000
System Description: Ubuntu 23.10




Acknowledgement sent to Dmitry Gutov <dmitry@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70900; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 13 May 2024 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.