unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: rgm@gnu.org, 23033@debbugs.gnu.org, mgsloan@gmail.com
Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking
Date: Fri, 24 Sep 2021 20:45:14 -0700	[thread overview]
Message-ID: <CADwFkmm0QZWupVQh-KupygHDKtzY7h_qHjoMGZ2J+duQEbJaPQ@mail.gmail.com> (raw)
In-Reply-To: <87a6k1nymt.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Stefan Kangas <stefan@marxist.se> writes:
>
>> Much?  I'd say no.  It changes a little, in most cases, e.g.:
>>
>> -rw-r--r-- 1 skangas skangas      0 2021-09-25 02:02 .#foo#
>> -rw-r--r-- 1 skangas skangas     19 2021-09-25 03:33 foo
>> -rw-r--r-- 1 skangas skangas      0 2021-09-25 02:02 foob
>> -rw-r--r-- 1 skangas skangas      0 2021-09-25 02:01 foobar
>> -rw-r--r-- 1 skangas skangas      0 2021-09-25 02:00 .#foo.lock
>>
>> I guess this starts to matter more when you have a ton of files named
>> fooXXX.
>
> Ah, I see.  Well, perhaps adding a "#" at the end is the best fix here,
> then,

I'm not convinced that ls ordering (under some locales) is the most
important concern.

I don't even understand why you would need to see that file.  It almost
seems better to not see it at all, or keeping it outside of the
directory, given that we have many other things in place to help the
user notice and deal with file locking and conflicts.

> although it looks rather similar to the #auto-save# files then,
> which might confuse people...

That's a good point.

I just checked some other editors:

- vim uses ".foo.swp"
- nano uses ".foo.swp"
- VSCode has no swap file (or it's not in the directory)
- GEdit has no swap file (or it's not in the directory)

Just to give a rough idea of what's considered acceptable out there.





  reply	other threads:[~2021-09-25  3:45 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CADwFkmm0QZWupVQh-KupygHDKtzY7h_qHjoMGZ2J+duQEbJaPQ@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=23033@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=mgsloan@gmail.com \
    --cc=rgm@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).