From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Date: Mon, 13 May 2024 18:22:06 +0300 Message-ID: <86eda5ybxd.fsf@gnu.org> References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17060"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70900@debbugs.gnu.org, michael.albinus@gmx.de To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 13 17:23:36 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 1s6XWa-0004HE-6v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 May 2024 17:23:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6XW4-0002o2-Ri; Mon, 13 May 2024 11:23:04 -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 1s6XW2-0002m1-Hu for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 11:23: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 1s6XW2-0004po-8g for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6XW2-0008OF-Ok for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2024 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70900 X-GNU-PR-Package: emacs Original-Received: via spool by 70900-submit@debbugs.gnu.org id=B70900.171561375532222 (code B ref 70900); Mon, 13 May 2024 15:23:02 +0000 Original-Received: (at 70900) by debbugs.gnu.org; 13 May 2024 15:22:35 +0000 Original-Received: from localhost ([127.0.0.1]:33278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6XVa-0008Ne-QF for submit@debbugs.gnu.org; Mon, 13 May 2024 11:22:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6XVV-0008NY-NC for 70900@debbugs.gnu.org; Mon, 13 May 2024 11:22:33 -0400 Original-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 ) id 1s6XVO-0004it-Su; Mon, 13 May 2024 11:22:22 -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=w+yT7iq7bhq6wXLu0Mc2Qgga8mVklFN9ZK8KD+n9qhA=; b=YiSCOKGMokso cuMlNbARewp5J24af4BwWtrQ/jX4TvU+lBO//OFX8auyMA+KQPB5susuD1uCqdFrEL7mGL3ZVl+Js roiygQ9dQHAisDxtj6R1QmXkIusEyRO04FX5u4q/EPp/XNHf6I/gG6cX7dZoKamdddCMb0mqYgoTW +ujQ3nKABTw4iG60dKApZD7nUv1WibTbK9zIw6ZM5FQ3JKUdfUkjunj60IhKwkzldYiRpMn40xiSr O5ujNJKuYpxW9xEJ4nZMcCvQoZ8bEujKY9q1kj/IjBigMAH/2eV2KOTeY9wATsLRUTPV0LDZuRxSu TWyolN2efTH6+wujMMR5Kw==; In-Reply-To: <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> (message from Dmitry Gutov on Mon, 13 May 2024 14:30:06 +0300) 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:284978 Archived-At: > Date: Mon, 13 May 2024 14:30:06 +0300 > Cc: 70900@debbugs.gnu.org > From: Dmitry Gutov > > 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. VS Code is written for people who own the computer and only have a single session active at all times (that's how Visual Studio works, remember?), so they don't need to lock file. People who use Emacs in the same way could indeed disable file locking. But Emacs itself cannot know whether this is the case, and given the proliferation of Emacs usage patterns whereby people use the same session locally and from a remote machine, we cannot disable file locking by default, IMO.