From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#49261: 28.0.50; File Locking Breaks Presumptuous Toolchains Date: Thu, 01 Jul 2021 18:57:12 +0200 Message-ID: <87zgv6vuon.fsf@gmx.de> References: <87o8bn7bie.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="17429"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mallchad Skeghyeph , 49261@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 01 18:58:27 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 1lz01B-0004GR-J9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 18:58:25 +0200 Original-Received: from localhost ([::1]:47194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lz01A-0001wR-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 12:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz00o-0001wA-Gf for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 12:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lz00o-0001Bl-6I for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 12:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lz00n-0007sO-Vs for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 12:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jul 2021 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49261 X-GNU-PR-Package: emacs Original-Received: via spool by 49261-submit@debbugs.gnu.org id=B49261.162515864330208 (code B ref 49261); Thu, 01 Jul 2021 16:58:01 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 1 Jul 2021 16:57:23 +0000 Original-Received: from localhost ([127.0.0.1]:33613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz00B-0007r9-Be for submit@debbugs.gnu.org; Thu, 01 Jul 2021 12:57:23 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:49603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz009-0007qt-0v for 49261@debbugs.gnu.org; Thu, 01 Jul 2021 12:57:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1625158634; bh=LGhparNyHYFQt1ciZQgPP9NB9sLHugk6e9XNU4mB2+k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=HY0ZJqTZUjk+tOkaY9r6CfW7IGvcab0VTDFVrP1/2KzQ7JqjUmcgkvvmJW31vUc4Z ARm5DuOxzSf9zlB0ysfhQK3Ij1t2OV8zleVdwAxvNg7mTTfFzbMJp/xrRxhKkCSxCH apeGXGVryJ88+J8lyrBklSUJVwQx2YOx787MT+7s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.159.163]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7zBR-1lCcCg3ip1-0152sJ; Thu, 01 Jul 2021 18:57:14 +0200 In-Reply-To: <87o8bn7bie.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Jun 2021 15:00:41 +0200") X-Provags-ID: V03:K1:HrCnJZebIRZecfA5vq3ip3d/qviF1tVgUu0/H828NXkeyLFmnWf mSH5lEfqCu6NMSAD2LrdSOLws7iJZyVY0dGQlVHSB38P9VY0xHJmu+jnSM5ZdL8n11yGPia J0Bp2hGYkB+e6/AYGob7jWWTcu5SHRu1Ct+NG7O/0Rj4x+bWdwk8bfhx72Po0iSav0Iqby0 Y3wQ65/lqHJwIeE8w4gvg== X-UI-Out-Filterresults: notjunk:1;V03:K0:umlmLzzTq2A=:7bnV6O3MF0CVG5k+fgRdvn L8hkNMzap6/Fk2DkrSB+P8XgZ2qyvgkM9Yy1/XqwNapaYsZO7CVdH9lroUwSOWHSeT6BPcksc ErrOWRDXHtnEMQOfcB4thgqslL7AvjZ5mgtePubzHgyMHXNGdSqMGGts+bi1wJE8FwGg5Iz85 lH5PGt6XQINV9uBlhyp3SicVAhAM7zHGkyq864zSGug0X1iekFcMThOD4dqsMM/oN43jJUCp2 tLxpN8WmPMTkeBS8Rugap4QKUNogrR6Y3ZjqJzfj8gRFIAAKdwlGTl5odbbcl1acbYWBubpiS qEcvsI/Rf4cTDQK+iQiOYEwrnv+63MJwmnRAW3S2bV2jaXkN30Y/BXKq6lGNqVbrGGsXIGgMH gXRMvWfEEMmz1UrhgHSZzjYm4SrKFWp3XlZQSfHgUh/R9ucKyBTew+HwwOfmAezhRYYPEXPqw w9qnt7BSgCSCl5cWdvHte5+edDw+uBOaomJJ1e+C8hdwIlYqUZ5d8ND8oZOspTGoCcsVi4+ll GKTPeRYzMK4xnX7PemcaNCqnspd48KFsOgmOwZZPM44kuFT2V6X1s/cjqvJzrifNgDExXH64I t7yBsQgEPGJKgpo/mRUQKaKnf4bSHYXApoGhdaL2lCtm9+ktA6Cae8bjD1rS/PbltjvtGSuzq pREaaGdrTX9O4gix5WEeBIECDvwmiKs8ZeLX31q223fkon0f3/Sc0TFJ0RetXLTp/03bxEkox J/vO16Ck6mNhKkH19LNcTirAwq/FoNcPex9oBIFZNvjP2K2LqojIUhIM0VBVAv9j9KjvYjnA 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:209275 Archived-At: Lars Ingebrigtsen writes: Hi Lars, > Yes, this is a question that comes up from time to time, and I don't > think we've documented in a comprehensive way how to make Emacs not > write anything in the directories it visits. > > For auto-save files, that's auto-save-file-name-transforms. > For backup files, that's backup-directory-alist. > For lock files, they can be switched off with create-lockfiles. > > Would it make sense to allow the user to control where the lockfiles are > written? The lockfiles are symlinks, so it should theoretically be > possible to have them elsewhere without being any racier than the code > currently is, I think. > > Any opinions? Thinking about, it makes much sense to write the lockfile into the same directory as the file it locks. Think about mounted directories. If there is, for example, an NFS server which exports home directories, and you are editing /home/user/.emacs with different Emacs instances on different machines, where /home/user is mounted, you want to protect ~/.emacs for write access from any Emacs instance when needed. A similar case would be for remote files, where a file could also be locked for access with Emacs from different machines, which use Tramp. Note, that file lock does not exist yet for remote files, but as Eli said, we want this feature. So the very recommended default lock file name shall be what we have now. We could give the user a configuration variable to change this behaviour, but with explicit warning about consequences. Best regards, Michael.