Subject: bug#62614: Tramp attempts to remove lock file with 'remote-file-name-inhibit-locks t

From: Eli Zaretskii <[email-masked]>
Date: Mon, 03 Apr 2023 17:14:16 +0300

> Cc: [email-masked]
> From: Michael Albinus <[email-masked]>
> Date: Mon, 03 Apr 2023 11:54:08 +0200
> 
> Yuri D'Elia <[email-masked]> writes:
> 
> Hi Yuri,
> 
> > 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?
> 
> Don't know, this behavior is "since ever" (I don't remember a change here).
> 
> With Tramp I'm agnostic. Tramp follows the behavior of local files. It
> could do it differently, the local behavior could change, whatever.
> 
> Opinions?

How about trying to remove the lock file, but if creation of lock
files is disabled, suppressing the warning?