all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Sloan <mgsloan@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 23033@debbugs.gnu.org
Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking
Date: Thu, 7 Nov 2019 23:17:16 -0700	[thread overview]
Message-ID: <CAEDDsWfeZfsOPrJ+5WU46KhDs1RFQ4BcUNzL-L3OSYU7dDGjiw@mail.gmail.com> (raw)
In-Reply-To: <87pni3t129.fsf@marxist.se>

[-- Attachment #1: Type: text/plain, Size: 2711 bytes --]

Correct, it is easy to fix in the tens of thousands of places where it can
cause misbehavior :)  But it is probably easier to fix it one place.

Here are some example issues I found searching for "emacs lockfile glob"
yields 22 results -
https://github.com/search?q=emacs+lockfile+glob&type=Issues - here are some
relevant ones:

* https://github.com/joeyespo/pytest-watch/issues/68
* https://github.com/joeyespo/pytest-watch/pull/101
* https://github.com/broccolijs/broccoli/issues/233
* https://github.com/michaelwayman/node-sass-chokidar/issues/24
* https://github.com/lammps/lammps/issues/1111

Searching for emacs "lockfile" yields 733 results -
https://github.com/search?q=emacs+"lockfile"&type=Issues
<https://github.com/search?q=emacs+%22lockfile%22&type=Issues> - here are
some relevant ones:

* https://github.com/microsoft/TypeScript/issues/29461
* https://github.com/jekyll/jekyll/issues/7888
* https://github.com/lukaszb/nose-watch/issues/15
* https://github.com/pylint-bot/pylint-unofficial/issues/367
* https://github.com/michaelwayman/node-sass-chokidar/issues/74
* https://github.com/karun012/arion/issues/30
* https://github.com/ananthakumaran/tide/issues/320

It is common to list files by extension.  I'm sure that this is just the
tip of the iceberg.

-Michael

On Thu, Nov 7, 2019 at 10:00 PM Stefan Kangas <stefan@marxist.se> wrote:

> Glenn Morris <rgm@gnu.org> writes:
>
> > 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?
>
> As much as I agree with the general sentiment above, one could also
> consider users who are running e.g. 'find -iname "*.hs"' and are not
> necessarily interested in seeing Emacs lock files.  IOW, if this is
> not a big change, it could be worth doing it.  But it is mostly
> cosmetic.
>
> Best regards,
> Stefan Kangas
>

[-- Attachment #2: Type: text/html, Size: 4465 bytes --]

  reply	other threads:[~2019-11-08  6:17 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16 21:35 bug#23033: 24.5; Lock file uses the same extension as the file it's locking Michael Sloan
2016-03-19  2:09 ` Glenn Morris
2019-11-08  5:00   ` Stefan Kangas
2019-11-08  6:17     ` Michael Sloan [this message]
2019-11-08 13:29       ` Eli Zaretskii
2019-11-08 14:03         ` Stefan Kangas
2019-11-08 14:31           ` Eli Zaretskii
2019-11-08 13:24     ` Eli Zaretskii
2019-11-08 14:10       ` Stefan Kangas
2019-11-08 19:19         ` Eli Zaretskii
2019-11-09  6:17         ` Michael Sloan
2019-11-09  7:45           ` Eli Zaretskii
2019-11-09  9:12             ` Stefan Kangas
2019-11-09  9:24               ` Eli Zaretskii
2019-11-09 23:37                 ` Michael Sloan
2019-11-14  9:17                   ` Eli Zaretskii
2019-11-16 23:23                     ` Michael Sloan
2021-09-25  0:06                 ` Stefan Kangas
2021-09-25  1:49                   ` Lars Ingebrigtsen
2021-09-25  2:10                     ` Stefan Kangas
2021-09-25  2:27                       ` Lars Ingebrigtsen
2021-09-25  2:59                         ` Stefan Kangas
2021-09-25  3:05                           ` Lars Ingebrigtsen
2021-09-25  3:45                             ` Stefan Kangas
2021-09-26  5:28                               ` Lars Ingebrigtsen
2021-09-26  6:31                                 ` Stefan Kangas
2021-09-26  6:34                                   ` Lars Ingebrigtsen
2021-09-26  7:17                                     ` Stefan Kangas
2021-09-26  8:24                                       ` Eli Zaretskii
2021-09-26  8:37                                         ` Andreas Schwab
2022-04-18 11:30                                 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEDDsWfeZfsOPrJ+5WU46KhDs1RFQ4BcUNzL-L3OSYU7dDGjiw@mail.gmail.com \
    --to=mgsloan@gmail.com \
    --cc=23033@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.