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 19:45:11 +0300 Message-ID: <83fs9gvrs8.fsf@gnu.org> References: <87pm8mv2ex.fsf@wavexx.thregr.org> <87pm8lqs69.fsf@gmx.de> <874jpx1fn4.fsf@wavexx.thregr.org> <87mt3pcmv3.fsf@gmx.de> <87zg7pz2yx.fsf@wavexx.thregr.org> <87v8idz2qc.fsf@wavexx.thregr.org> <87jzytqmva.fsf@gmx.de> <87iledypuz.fsf@wavexx.thregr.org> <878rf90vvq.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1246"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wavexx@thregr.org, 62614@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 18:45:22 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 1pjNJ4-00009l-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 18:45:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjNIn-0003ZA-C5; Mon, 03 Apr 2023 12:45: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 1pjNIk-0003Yi-Ld for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:45: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 1pjNIk-0003f4-9d for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjNIj-0000bh-RC for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:45:01 -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 16:45:01 +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.16805402982309 (code B ref 62614); Mon, 03 Apr 2023 16:45:01 +0000 Original-Received: (at 62614) by debbugs.gnu.org; 3 Apr 2023 16:44:58 +0000 Original-Received: from localhost ([127.0.0.1]:45113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjNIg-0000bB-DU for submit@debbugs.gnu.org; Mon, 03 Apr 2023 12:44:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjNId-0000ax-Hz for 62614@debbugs.gnu.org; Mon, 03 Apr 2023 12:44:56 -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 1pjNIX-0003cm-5f; Mon, 03 Apr 2023 12:44:49 -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=mIAfPAneoz9IC2RnBX4HjnQAhrfALdSGWNtVI4URrqI=; b=HBkWKlklXILp YoJRKCu4R6QHEnD5sU78N8ilz+ViGqud3foF8t69mwuXytmuv/ybPa3jJHQpya4SMrDiwKXxsE/h/ sbd8jgmXjGfXibeL7g793jxEzGbEVbou0aD19jKMPjcqe9wj/ItJYhCcjyb70yzcpz56ozfpdfsdX iQIk1yHI7Et9F5cfs85AzlBV9vtesuuQwpbEtIC2mCGfGTR8Wg9auF1mi/ojU8lG2D+Nzo6Qe/d3n k2TLGFL/piw1g5mPTPJXoTD6Z4VEgNcgWKNBC3YtfPYDFYAtKlrJbrEk1hVPU9P++s2eULkfSQGBQ 6mk20nQJTfE6sGY5mc2/yw==; 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 1pjNIW-0006YP-Eo; Mon, 03 Apr 2023 12:44:48 -0400 In-Reply-To: <878rf90vvq.fsf@gmx.de> (message from Michael Albinus on Mon, 03 Apr 2023 18:32:25 +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:259197 Archived-At: > From: Michael Albinus > Cc: Eli Zaretskii , 62614@debbugs.gnu.org > Date: Mon, 03 Apr 2023 18:32:25 +0200 > > > On Mon, Apr 03 2023, Michael Albinus wrote: > >>> IMHO if lock creation is inhibited, we could still attempt to remove the > >>> lock to keep the old behavior, but then the warning shouldn't be > >>> generated as you don't expect the lock to exist in the normal case. > >> > >> That might be an option. But it wouldn't fix your use case, where you > >> try to avoid the file locking machinery for remote files at all. > > > > No, but it would fix an unexpected warning for both tramp and local > > files, which I think is beneficial. > > > > On Mon, Apr 03 2023, Eli Zaretskii wrote: > >> How about trying to remove the lock file, but if creation of lock > >> files is disabled, suppressing the warning? > > > > As above. > > See appended patch. LGTM, thanks. > Shall it go to the emacs-29 or master branch? Master, please.