GNU bug report logs - #54294
29.0.50; Emacs can't unlock files with --no-build-details

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Mon, 7 Mar 2022 16:50:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 54294 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, 54294 <at> debbugs.gnu.org
Subject: Re: bug#54294: 29.0.50; Emacs can't unlock files with
 --no-build-details
Date: Tue, 08 Mar 2022 08:55:07 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi,

>> emacs -Q -batch --no-build-details -eval '(write-region "" nil "/tmp/test.txt")'
>>
>> /tmp/.#test.txt still exists.  This is probably because the function
>> `current_lock_owner' doesn't handle the case where `system-name' returns
>> nil (it assumes the file is remote in that case).
>
> Yup.  I've now made the obvious fix in Emacs 29.

I've applied a similar patch for Tramp, pushed to master. Will also be
available with Tramp 2.5.2.3, the next GNU ELPA release.

Best regards, Michael.




This bug report was last modified 3 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.