From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#62614: Tramp attempts to remove lock file with 'remote-file-name-inhibit-locks t Date: Sun, 02 Apr 2023 15:28:21 +0200 Message-ID: <87pm8mv2ex.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29266"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.0; emacs 30.0.50 To: 62614@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 15:29:29 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 1pixlw-0007Po-Rk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 15:29:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pixlY-0000VG-0y; Sun, 02 Apr 2023 09:29: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 1pixlW-0000V7-5q for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 09:29:02 -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 1pixlV-0005Dr-Tv for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 09:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pixlV-0000l9-Pq for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 09:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 13:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62614 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16804421312899 (code B ref -1); Sun, 02 Apr 2023 13:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2023 13:28:51 +0000 Original-Received: from localhost ([127.0.0.1]:39344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pixlK-0000kh-LR for submit@debbugs.gnu.org; Sun, 02 Apr 2023 09:28:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pixlH-0000kY-42 for submit@debbugs.gnu.org; Sun, 02 Apr 2023 09:28:49 -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 1pixlG-0000Uc-RF for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 09:28:46 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pixlD-0005Cq-RS for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 09:28:46 -0400 Original-Received: from [37.163.214.31] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1pixlD-000p8Y-0r (envelope-from ) for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 15:28:43 +0200 Received-SPF: pass client-ip=2001:41c9:1:41f::63; envelope-from=wavexx@thregr.org; helo=erc.thregr.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:259107 Archived-At: I have the following configuration to reduce remote latency while saving, where the interesting tidbit is 'remote-file-name-inhibit-locks: (setq tramp-ssh-controlmaster-options "-o ControlMaster=auto" remote-file-name-inhibit-cache 300 remote-file-name-inhibit-locks t) While editing a remote file via /scp:remote:test.txt I see the following warning pop up: Warning (unlock-file): Cannot remove lock file for /scp:remote:test.txt, ignored because the lock file hasn't been created in the first place. I guess we shouldn't attempt to unlock if there was no lock to begin with. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2023-04-01 built on t14g2 Repository revision: 4bd1fc59664273c571aba8543940768c68eb336b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-x-toolkit=lucid --with-native-compilation --with-tree-sitter --without-gsettings 'CFLAGS=-O3 -flto -march=native -pipe ' 'LDFLAGS=-fuse-ld=mold -flto''