bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23033: 24.5; Lock file uses the same extension as the file it's lock


From: Glenn Morris
Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking
Date: Fri, 18 Mar 2016 22:09:58 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Michael Sloan wrote:

> Lockfiles help the circumstance where multiple emacs processes are
> editing the same file. The lockfile for 'File.hs' gets the name
> '.#File.hs'.  This means that naive enumeration of all the files in the
> directory with the extension '.hs' will also yield the lockfile.  Many
> tools have behaviors that rely on enumerating all of the files which
> have a particular extension, reasonably assuming that the user put them
> there.

It's very long-standing behaviour.
So that we can assess how big the issue is, can you give some examples
of the tools that have issues with this?
As you say, it seems naive for a tool to simply find all files with a
given extension, including dotfiles that are non-existent symlinks.

> In particular, for me this caused the following issue:
> https://github.com/commercialhaskell/stack/issues/1897

Which you fixed the same day in the tool in question, right?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]