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#62614: Tramp attempts to remove lock file with 'remote-file-name-inhibit-locks t Date: Mon, 03 Apr 2023 17:10:26 +0300 Message-ID: <83wn2tukdp.fsf@gnu.org> References: <87pm8mv2ex.fsf@wavexx.thregr.org> <87pm8lqs69.fsf@gmx.de> <874jpx1fn4.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62614@debbugs.gnu.org, michael.albinus@gmx.de To: Yuri D'Elia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 16:11:14 2023 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 1pjKtu-0002zC-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 16:11:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjKtk-0008FN-W9; Mon, 03 Apr 2023 10:11:05 -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 1pjKtj-0008E4-NC for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 10:11:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjKti-0002Py-N7 for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 10:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjKti-0002Eb-AZ for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 10:11: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, 03 Apr 2023 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62614 X-GNU-PR-Package: emacs Original-Received: via spool by 62614-submit@debbugs.gnu.org id=B62614.16805310138524 (code B ref 62614); Mon, 03 Apr 2023 14:11:02 +0000 Original-Received: (at 62614) by debbugs.gnu.org; 3 Apr 2023 14:10:13 +0000 Original-Received: from localhost ([127.0.0.1]:44920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjKsv-0002DQ-8B for submit@debbugs.gnu.org; Mon, 03 Apr 2023 10:10:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjKst-0002DB-WB for 62614@debbugs.gnu.org; Mon, 03 Apr 2023 10:10:12 -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 1pjKsn-00026i-N8; Mon, 03 Apr 2023 10:10:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=l91cJOP/lFAAJh21R4To9KkvSZhS6npjtdmbu81jCM0=; b=R0htzoL8Ad9W/787teFD 8dojOllfUg7DjlXa6qwNQW88oY61JBs+4WXuXeJhekhJHZbiesypSvVk2+0sTkWn5XRJLRNqh9p2N /CXqyEBQrW99Sb0ZFXaSIpqsihK8EM3IXWll9dyK5Sv5NVfLzSmZYzHi1NqpNtwxiHowVOCI4lG5w whczjACNaVZ2NBoEBKJMKDQMNthKyt07GjAPkw0pdtSh1gVdJMbz3vwwKRax+cmJKqD9n1hDr/Qce GlqwQMq9mcZUJ9xf/htwFrxenT/IDB/aTVrYwVQ7klEVYaknrGxThIS8S5wt2puS62sDMYhZaRPkj Df6WYH15mKs1Ag==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjKsm-0004UH-Sy; Mon, 03 Apr 2023 10:10:05 -0400 In-Reply-To: <874jpx1fn4.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Mon, 03 Apr 2023 11:19:19 +0200) 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:259184 Archived-At: > Cc: 62614@debbugs.gnu.org > From: Yuri D'Elia > Date: Mon, 03 Apr 2023 11:19:19 +0200 > > On Mon, Apr 03 2023, Michael Albinus wrote: > > Tramp behaves like with local lock files. Imagine, you have a local file > > ~/test with a lock file (a symbolic link) ~/.#test -> something. Set > > create-lock-files to nil. Start editing the local file ~/test, and save > > it. The local lock file ~/.#test is removed. > > > > And that's also what's documented, see (info "(elisp) File Locks") > > > > -- User Option: remote-file-name-inhibit-locks > > You can prevent the creation of remote lock files by setting the > > variable ‘remote-file-name-inhibit-locks’ to ‘t’. > > > > > > It speaks only about creation of remote lock files, and not about > > removal. > > Mmmh, maybe it should be mentioned explicitly. For me, "inhibit-locks" > meant inhibiting both creation and removal. > > But even for local files, why the unlock is done? For cleanup? Yes, because a lock file could be created before the option to avoid them was set.