From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <8jy49fnrpl.fsf@fencepost.gnu.org> <87pni3t129.fsf@marxist.se> <83eeyicxh7.fsf@gnu.org> <875zjutq51.fsf@marxist.se> <83imnta3y6.fsf@gnu.org> <83d0e19zcm.fsf@gnu.org> <878rzlqva7.fsf@gnus.org> <871r5dpeya.fsf@gnus.org> <87a6k1nymt.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rgm@gnu.org, 23033@debbugs.gnu.org, mgsloan@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 25 05:46:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTydd-00014X-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 05:46:09 +0200 Original-Received: from localhost ([::1]:60108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTydb-00056f-Vd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 23:46:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTydW-00056W-6o for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 23:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTydV-0004fs-SN for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 23:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTydV-0006XC-Ma for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 23:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Sep 2021 03:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23033 X-GNU-PR-Package: emacs Original-Received: via spool by 23033-submit@debbugs.gnu.org id=B23033.163254152425060 (code B ref 23033); Sat, 25 Sep 2021 03:46:01 +0000 Original-Received: (at 23033) by debbugs.gnu.org; 25 Sep 2021 03:45:24 +0000 Original-Received: from localhost ([127.0.0.1]:60017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTyct-0006W8-Oi for submit@debbugs.gnu.org; Fri, 24 Sep 2021 23:45:23 -0400 Original-Received: from mail-pf1-f180.google.com ([209.85.210.180]:45856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTycr-0006Vt-1C for 23033@debbugs.gnu.org; Fri, 24 Sep 2021 23:45:22 -0400 Original-Received: by mail-pf1-f180.google.com with SMTP id w19so10527973pfn.12 for <23033@debbugs.gnu.org>; Fri, 24 Sep 2021 20:45:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=WpzEM0GTy7fWIfpLoZL0eptOgj6fm6OYRiubhOtSBns=; b=N6jgzxCUTUIxQbUDV0eUKSHb7fqsGbbm6wQUPu0qujym1LgrLS9kY7X3q9hrWpmLBz JXcNStcpqWkIHYnWHOyl4VNfdwacy6vLyTJNCjDG7oimOykXmYoNLfaYzVMGmmW2X7zY 1TV2nszXa+zmoVEAMfBMVtQ8IHeOvmhwFsda0FQMXu50qYy5bQsDZjFsJVg8JTKyiO2b TT4kwKqZpbvhm2NlD8dIH4enR4hxary/78rtt9xZ02MTNO3YAruPjf+tiVA5Q7H9icv6 +Ok9T42kOBH29cy4cYJjF2IiTw6mye44o388kf+2d+MRLObTdYJwtZRbF9O8FeXs9lTX NAXg== X-Gm-Message-State: AOAM531dT0SqaNAfnfqGXpqZ59BfvZ7W+YjngdN8sCH9FdcKZPwkqKEw R9sd9TcQ2HhWDGxUoPMzcPX/HFMlu4XrPMIVR38= X-Google-Smtp-Source: ABdhPJw7Ir1FOunpOmnNEq0BVmKo4hqcDTWgegvKTeUQYcSQ3lJF++tptVx2Msfm7dqSQrQ1F5GKyM6OzMZQjFT7Mrs= X-Received: by 2002:a63:f946:: with SMTP id q6mr6683586pgk.42.1632541515268; Fri, 24 Sep 2021 20:45:15 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Sep 2021 20:45:14 -0700 In-Reply-To: <87a6k1nymt.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215409 Archived-At: Lars Ingebrigtsen writes: > Stefan Kangas 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.