From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking Date: Sun, 26 Sep 2021 07:28:21 +0200 Message-ID: <87h7e7lxca.fsf@gnus.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26149"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rgm@gnu.org, 23033@debbugs.gnu.org, mgsloan@gmail.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 26 07:29:14 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 1mUMiv-0006Xs-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 07:29:13 +0200 Original-Received: from localhost ([::1]:42298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUMir-0005c6-Cb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 01:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUMik-0005by-9B for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 01:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUMik-0006E9-1d for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 01:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUMij-0007Mj-V8 for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 01:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2021 05:29: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.163263411328279 (code B ref 23033); Sun, 26 Sep 2021 05:29:01 +0000 Original-Received: (at 23033) by debbugs.gnu.org; 26 Sep 2021 05:28:33 +0000 Original-Received: from localhost ([127.0.0.1]:35455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUMiH-0007M3-6k for submit@debbugs.gnu.org; Sun, 26 Sep 2021 01:28:33 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUMiF-0007Lr-UH for 23033@debbugs.gnu.org; Sun, 26 Sep 2021 01:28:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vo92wYOwmihluBGEg8yKfjDIwAbNZ4JFyu9rotlxBFc=; b=jQb30YXK3+FLEYZ8fg8Zex7/fW N4N3J+pOdlNS2rs0G7IrUe1LMACj1WEgyhzS2bj+jOS4nqaw370OBf8z1B4yAnh3Nkbxc/Yhpadnu 6YR1t4V8qNCiDBe8dsaeY3eZ7vS3WXx4j3OCLexZjpWURxbvh5JhOswfRUpC1KgNA9TQ=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mUMi6-0005gt-Gd; Sun, 26 Sep 2021 07:28:24 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWhlEBJRSr////o CFXIAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAABLAAAASwAc4jpUgAAAAd0SU1FB+UJGgUXFzhyNqEA AADgSURBVCjPdZLRCgQhCEUVxneD/J+CejfI//+VtWxmdx9GmMHDvZlKAO+BdqKcXG/4U9AUqDEt oF+F0r/tR3kFfAXg0Ut5musi30Yzj6/CYz4CjJ7KA/XqkWxI0h+lpbTu4OXFBmukAL4AJwNyO6Db vsA/5QMrSI/trvoDDNz4htZS1kgzSascgF0HVw24xGQ03b1zrdV6juGv7OvIqe4Ta0E6B22lqBjV HqWzFDSxPQNQ8Q3aPNvz7Yhp1XONhwSg22xaiQ6WQoanUS8gdmz+p/UaQvBbux+7h55kou9v6gPB V0n+mfEx0AAAAFplWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAAB AAAAUgEoAAMAAAABAAEAAAITAAMAAAABAAEAAAAAAAAAAAEsAAAAAQAAASwAAAABYCqauwAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wOS0yNlQwNToyMzoyMyswMDowMJ/jyv0AAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMDktMjZUMDU6MjM6MjMrMDA6MDDuvnJBAAAAF3RFWHRleGlmOllDYkNyUG9z aXRpb25pbmcAMawPgGMAAAAASUVORK5CYII= X-Now-Playing: Ghetto Priest - =?UTF-8?Q?=E2=80=98Hercules=E2=80=99?= (North Street West =?UTF-8?Q?=E2=80=98Late?= Night =?UTF-8?Q?Tales=E2=80=99?= Dub) (Exclusive remix)'s _Late Night Tales: Version Excursions (Selected By Don Letts)_: "Original" In-Reply-To: (Stefan Kangas's message of "Fri, 24 Sep 2021 20:45:14 -0700") 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:215547 Archived-At: Stefan Kangas writes: > 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. I've started using lock-file-name-transforms myself to put the lock files somewhere else, but most people will use the defaults here, and if we want to change anything here, I think we have to tread carefully. That is, if we introduce a change that makes things sort differently, we should have a really good reason to do that, because it will annoy (some) users. So perhaps adding a "#" (or some other non-alphabetic character) at the end is the solution that will have the least friction? Are there any other characters we could be using? %? > 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) And these swap files serve the same purpose as our lock files? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no