GNU bug report logs - #49261
28.0.50; File Locking Breaks Presumptuous Toolchains

Previous Next

Package: emacs;

Reported by: Mallchad Skeghyeph <ncaprisunfan <at> gmail.com>

Date: Mon, 28 Jun 2021 18:28:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, ncaprisunfan <at> gmail.com, 49261 <at> debbugs.gnu.org
Subject: bug#49261: 28.0.50; File Locking Breaks Presumptuous Toolchains
Date: Wed, 07 Jul 2021 18:55:26 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi Lars,

> So if somebody could give that a look-over while I'm writing up the
> documentation, that'd be great.  :-)

Just some first thoughts, by dry reading.

>  	(if handler
>  	    (funcall handler 'make-auto-save-file-name)

We have a file name handler for make-auto-save-file-name. Shall we use
also a handler for make-lock-file-name?

> +(defun make-lock-file-name (filename)
> +  "Make a lock file name for FILENAME.
> +By default, this just prepends \".*\" to the non-directory part
> +of FILENAME, but the transforms in `lock-file-name-transforms'
> +are done first."
> +  (auto-save--transform-file-name filename lock-file-name-transforms ".#" ""))

Hmm, maybe not, because the lock file name must be the *same* over
different Emacs sessions.

Furthermore, there is auto-save-mode, which toggles auto-saving. Shall
we use something similar for file locks? Perhaps, people might not want
to lock all files, for example they might want to disable this feature
for remote files (possible performance degradation).

Best regards, Michael.




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

Previous Next


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