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: Tue, 13 Jul 2021 21:09:03 +0200 Message-ID: <87fswiowts.fsf@gnus.org> References: <87v95mf2lj.fsf@gmx.de> <87pmvt3ob1.fsf@gnus.org> <87fswpgacv.fsf@gmx.de> <87bl7dfikj.fsf@gmx.de> <8735sofuqj.fsf@gmx.de> <83sg0oc83l.fsf@gnu.org> <87v95jevrm.fsf@gmx.de> <83lf6fdav4.fsf@gnu.org> <87r1g7eoor.fsf@gmx.de> <87im1jphyy.fsf@gnus.org> <87im1fd4fr.fsf@gmx.de> <83sg0jaaud.fsf@gnu.org> <87a6mrd2di.fsf@gmx.de> <838s2ba18y.fsf@gnu.org> <87pmvnsadx.fsf@gnus.org> <837dhva0vi.fsf@gnu.org> <878s2arxa5.fsf@gnus.org> <83o8b688v2.fsf@gnu.org> <877dhuaydr.fsf@gmx.de> <83mtqq82ew.fsf@gnu.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="2082"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Albinus , ncaprisunfan@gmail.com, 49261@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 13 21:10:26 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 1m3NnV-0000I5-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 21:10:25 +0200 Original-Received: from localhost ([::1]:51150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3NnU-0000Fk-MI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 15:10:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Nn8-0000FF-6t for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 15:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3Nn7-0001b7-V2 for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 15:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3Nn7-00041s-QD for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 15:10: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: Tue, 13 Jul 2021 19:10: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.162620335415418 (code B ref 49261); Tue, 13 Jul 2021 19:10:01 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 13 Jul 2021 19:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:42046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3NmM-00040b-Kn for submit@debbugs.gnu.org; Tue, 13 Jul 2021 15:09:14 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:34190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3NmL-00040Q-IM for 49261@debbugs.gnu.org; Tue, 13 Jul 2021 15:09:14 -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=p1PRIlF7H+qoO+jC6LMyi7dTeUSnWpFZxnwsiFOyn1E=; b=pcD057tHO7wXDv6028eEV+dP5l x/Q3V48Etu/omhP3L49kNWS0YCe4L/UVvMgtGxolqdlTKdQKCjMUnAITuQ4jrcrNG/evYyIWYycbm ML+FBYcuYEdNeV0MUMVS61tGW4ZjnB+ryYiTqUMO40mK7Rj+2+vyrbLkKwGOTzKFLvik=; 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 1m3NmC-0003cq-U7; Tue, 13 Jul 2021 21:09:07 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEUpIRC+rE3///8D 5IVeAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+UHDRMEImV7vZUA AAC3SURBVCjPlZJBDgMhCEUhkf0syn0k6eydxH//q1TRUZpJF2VheH6FT5Tod7CIKR2JmP4Nzm0Z FxUXytxlBRS15wIDyovgOTJQFe0WwwELzqigg5eaQBsybVg+cPd2ePjMHNRK40Cv2kp7wdvOApvW nspvsCIbaDj3lubHrtG2geIs6TakeEM8O5ofSbBbackVp/iaq+40cYAax/dR04KygA9/nAklQg4w YoNY+CQyXkItb6CuV6EPMAY6nV361zgAAABaZVhJZk1NACoAAAAIAAUBEgADAAAAAQABAAABGgAF AAAAAQAAAEoBGwAFAAAAAQAAAFIBKAADAAAAAQACAAACEwADAAAAAQABAAAAAAAAAAAASAAAAAEA AABIAAAAAR9S9zQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMTNUMTk6MDQ6MzMrMDA6MDBT 8qBSAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTEzVDE5OjA0OjMzKzAwOjAwIq8Y7gAAABd0 RVh0ZXhpZjpZQ2JDclBvc2l0aW9uaW5nADGsD4BjAAAAAElFTkSuQmCC X-Now-Playing: Steven Brown's _Live in Tilburg_: "A Quoi Ca Sert L'Amour" In-Reply-To: <83mtqq82ew.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Jul 2021 22:00:23 +0300") 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:209871 Archived-At: Eli Zaretskii writes: >> > And apart of remote file names, what other practical use cases can you >> > think of where disabling locking selectively based on the file name >> > would make sense? >> >> All file names which match `mounted-file-systems'. > > Shouldn't file locking be disabled there by default, and never > enabled? Disabling file locking there (and backup files too, perhaps?) would make sense, but the user should be able to override it. (They may have directories called "/media" that's not a mounted file system.) As for other use cases -- I have, for instance, some automated processes on several systems that write to the same file, and file locking of that file has tripped me up before. I've now rewritten those processes to work differently, but if `lock-file-name-transforms' had existed before (and allowed disabling locking based on regexps) I would have used that instead. I'm sure there's as many use cases for disabling auto-save/locking based on regexps as there are for transforming the file names. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no