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#49261: 28.0.50; File Locking Breaks Presumptuous Toolchains Date: Thu, 01 Jul 2021 12:55:55 +0200 Message-ID: <87bl7m2thg.fsf@gnus.org> References: <87o8bn7bie.fsf@gnus.org> <83k0mbmqkh.fsf@gnu.org> <87tulf30ou.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="15807"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49261@debbugs.gnu.org To: Mallchad Skeghyeph Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 01 12:57:10 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 1lyuNa-0003uF-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 12:57:10 +0200 Original-Received: from localhost ([::1]:41332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyuNX-0005Cv-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 06:57:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyuNS-0005CY-0J for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 06:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyuNR-00089b-PM for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 06:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyuNR-0005by-NS for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 06:57: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: Thu, 01 Jul 2021 10:57: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.162513696721493 (code B ref 49261); Thu, 01 Jul 2021 10:57:01 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 1 Jul 2021 10:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:59667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyuMZ-0005ab-GD for submit@debbugs.gnu.org; Thu, 01 Jul 2021 06:56:07 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:38976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyuMW-0005a1-Mx for 49261@debbugs.gnu.org; Thu, 01 Jul 2021 06:56:06 -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=/ePxmfCNZP3NgmmuYphDkdPDAdRVJFyTXgmUdBZeNBI=; b=ZKYuNmFELgsQTsOIBIc2grAaMW EvndJQLH0+5OJgyd+EJ/o5Yx6BI7aZgvw6iji9RGP82m4tC+alrncBIVYM/Gm4gc7S8Nj/ZlTc3oe 0sHwLOpa2O1E5g31I1Q31Bzszl9utsmqKF+yEQ509+W0MCOHF7XPcU/qBqyQI8oY07sI=; Original-Received: from cm-84.212.220.105.getinternet.no ([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 1lyuMN-0003px-Sg; Thu, 01 Jul 2021 12:55:57 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUaCwpdNjCYZVm7 iXbpyrf///+ul/arAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UHAQo0NvnGeFwAAAGYSURBVDjLddOL lasgEAbgIWmAGW8BwqQAEQu4Efqvaf/BrBF1OTlG+Q7zECQi8uTIeWrDs2P6Dk+8PTLmj0C/j/jH 3YFYdnAk8z4vMbLfVygjtv0ca87hk8QF5RYXV9Gl5DmOVpmtCCK4E4TJtdYcw2MierC3ylCzRtUF UOIsb4RFHVtLmjUbrJL1/amsZUZei1RYiv4/tqa5FkBSLdF3UG2UYX6VQFdYZ7nAVuyCClIHg9bF AOF6eNQGlid0ybnlaBC7nWDrrs6vBscl/K9Vpfa2ehgacC5z6CFsoPkM0WJljnqCwC39HDRKBzG0 LCXgxnUQmV+1lBxH7NIRsMmutdL1vYG3YCudwITQ+HgFbLHTdJqn9Vu9P+yUUN2Os+EcD21TTTvQ d4UASgN3hcUOJeEyjnHAB4Ujm8ZhA+8wP9EUKCVRSjQ9P2Df0MsDdEQ9iYLsK5DlvcEAEKtq8S2U 83GKNKYGT4PsbZZ9CAEf4jMI+tyArsO5P4ABpdwsmGzFDeBtAyrdDQcId/MMyDciGVDyeVcJ5/IH 9yBR8BjwudoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMDFUMTA6NTI6NTQrMDA6MDCr4K+W AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTAxVDEwOjUyOjU0KzAwOjAw2r0XKgAAAABJRU5E rkJggg== X-Now-Playing: Jane Siberry's _Bound By The Beauty_: "Half Angel Half Eagle" In-Reply-To: (Mallchad Skeghyeph's message of "Wed, 30 Jun 2021 19:51:56 +0100") 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:209251 Archived-At: (Please keep the debbugs address in the CCs -- otherwise the message won't reach the bug tracker.) Mallchad Skeghyeph writes: > ...even if the lock files are symlinks (which they not necessarily > are), we need to handle the case of several files with identical > basenames in different directories. (Their being symlinks is > unimportant, because the target of the symlink doesn't exist.) > > Actually, is there even a good reason to keep relying on symlinks in the future? > Considering that.. ahem, some Operating Systems cannot do symlinks for the > user? > If it were treated as a normal file you could load it up with whatever metadata > you want. Using a normal file should also work, I think? But it'd be slightly less efficient on some common popular file systems. > Or just use the UNIIFY logic from auto-save-file-name-transforms > unconditionally... > > It seems most of `make-auto-save-file-name` makes very little assumptions > about how we're modifying the file, actually, > so it shouldn't be too too problematic to make it work for both. > Though, I would like an optional single variable for a directory for both, > as oppose to a slightly opaqueregex. > > Remote, I think, otherwise the lock can be easily ignored from another > machine. > > Yes. I think we need to keep compatibility with the current lock, if its noticed. > Remote or local. > In the case of remote files, we'd have to assume others might be using the > current > lock behaviour. Remote files are a problem, but what to do here would be up to the user (as it is with autosave files).