From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49261: 28.0.50; File Locking Breaks Presumptuous Toolchains Date: Wed, 30 Jun 2021 22:31:33 +0300 Organization: LINKOV.NET Message-ID: <87czs3b2ia.fsf@mail.linkov.net> 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="16402"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) 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 Wed Jun 30 22:05:16 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 1lygSR-000466-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 22:05:15 +0200 Original-Received: from localhost ([::1]:60382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lygSQ-0000TI-Bi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 16:05:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lygSF-0000Rd-6G for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lygSE-0006y8-Uy for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lygSE-0003pf-Ob for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2021 20:05:02 +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.162508346614616 (code B ref 49261); Wed, 30 Jun 2021 20:05:02 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 30 Jun 2021 20:04:26 +0000 Original-Received: from localhost ([127.0.0.1]:58807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lygRd-0003nf-SJ for submit@debbugs.gnu.org; Wed, 30 Jun 2021 16:04:26 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lygRc-0003nO-EG for 49261@debbugs.gnu.org; Wed, 30 Jun 2021 16:04:24 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C19DCE000A; Wed, 30 Jun 2021 20:04:17 +0000 (UTC) In-Reply-To: <87o8bn7bie.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Jun 2021 15:00:41 +0200") 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:209235 Archived-At: > 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? This is a real problem. To avoid syncing temporary files, it's easy to add a pair of lines for every such directory: (add-to-list 'auto-save-file-name-transforms '("\\`/dir1/dir2/.*" "/tmp/" t)) (add-to-list 'backup-directory-alist '("\\`/dir1/dir2/.*" . "/tmp/")) Then it creates temporary files whose names contain absolute paths: /tmp/!dir1/dir2!file~ /tmp/#!dir1/dir2!file# But currently no way to do the same for lock files, so need to take care not to forget to add the same pattern in every .stignore in every sync directory to ignore lock files that is extra trouble: .#*