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

From: Michael Albinus <[email-masked]>
Date: Mon, 13 May 2024 09:28:41 +0200

Eli Zaretskii <[email-masked]> 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.