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#66993: [PATCH] project.el: avoid asking user about project-list-file lock Date: Wed, 08 Nov 2023 08:46:48 +0100 Message-ID: <87h6lwelg7.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5320"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66993@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 08 08:47:50 2023 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 1r0dHy-0001Bc-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Nov 2023 08:47:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0dHn-0002s3-3R; Wed, 08 Nov 2023 02:47:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0dHk-0002rZ-6G for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 02:47:36 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0dHX-0002dx-RZ for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 02:47:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0dIA-0000LD-7p for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2023 02:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Nov 2023 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66993-submit@debbugs.gnu.org id=B66993.16994296601276 (code B ref 66993); Wed, 08 Nov 2023 07:48:02 +0000 Original-Received: (at 66993) by debbugs.gnu.org; 8 Nov 2023 07:47:40 +0000 Original-Received: from localhost ([127.0.0.1]:43941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0dHn-0000KW-Sh for submit@debbugs.gnu.org; Wed, 08 Nov 2023 02:47:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:50589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0dHm-0000KE-9L for 66993@debbugs.gnu.org; Wed, 08 Nov 2023 02:47:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1699429609; x=1700034409; i=michael.albinus@gmx.de; bh=49z9ozvtvnp663epdxq3NjHSeqyYnQyXRAq3MabcxUk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=VXODhQHwAsj0UB0c77yNV0H6thgAYVfVYEMNZgn+PJLsLARS16fv46NP23ibMtiB 9ULv5Y3SuFAbKNuPu2y0q19U8Y7XDm86B5jGYN+/DE260pJ8KhiaPr8KhUQ5+VDXb LlylRHJU2KV0q62PciW3AFM6yCip1Z74yOaur31dh4vnBn6e5AgQHTN8XN6oQvXCB 6T6f8Zzey4js08TjO2PVvN2Ys/WS0TMYkmxbXu96Mo79Sk6Qjc+3Ksx7VuB75C44n wDpwUW+G35QBurS+Vp+48LKwYFWG/ALD4kp2LcodmA0sLhog5vjpCvDpqfBLNn95R Ya9BF0j7eFnX8KzCpA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.30]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mlw7V-1rhuVH49lz-00j3Lr; Wed, 08 Nov 2023 08:46:49 +0100 In-Reply-To: (Spencer Baugh's message of "Tue, 07 Nov 2023 16:28:04 -0500") X-Provags-ID: V03:K1:VNqE2rqE7ZQE7YqfkAN+IdyrqHNRQsfZWZ267A9CZ3NyQ8H8YKg 90TFu0XkFzqjd2sTbIpfFkI3P5+2OY7eVQTdhbvnwI6bemvk2T4GqVERoQ2ofOwDQuK24hV TAmJrs9nPHXRG8TJyE33LzjW9EF6jP+uVw1UgXEi5awGpD9fIrrUKG8w0kSW4vWbjNf9nn8 HQK+dyPyGuWkvPctjkepw== UI-OutboundReport: notjunk:1;M01:P0:P7U/knCZySg=;aGIPHprF6muepPriTeBRj8pTb5Q NyOZ9WD+i+V9ID9MgXFMs7GQaFxMqug7xMXre5XR8FNMhnpRjgYFVD1rueSD+DFoPl4+x4FSt JVYolLTrvNVzF3nby3B/vfDxeDFGPc5lx3PvAcnE5vGG8nTh2ENUlEzrGWYmY54Po3QD7O2CO ENffdDv6EJZ34en34FkD44pirDtMsXtDA6qYMzGBZpRV5Vuxwm2MNVxkRnp6u0pWRLht88/Oa Kp6sJV49vWWs4cXaQHxYXGNyI85G5tcu+z8AhV75Ve9RE8R8Ysq/28/z541UhySpzTg3RrJH9 Cd6SN6hfTUakqUI8qTVqDuODopss9YbvRj2IsCniUAS/6lghCyvzKmupW+J4eGX2u91Elr18I TrXam2WCW2z8xNW/1LNoPC2rNTs5ksz9OAOFpiAlXidiPaf0TF7I8E9CUN4q/aTanr3Wih7f0 2WF/KvfYmIGvvtadEofgzw0WAa+p9oMQSqgdPmtGQcJAFoKnSPpnTi0CWoKhN532devB86Qjw caCy5C4rbKaXDofg9kbTLIB2CO/wkFi3p1lhg34Kwy+ezNSWB6eYKgPtLKO4NSUV3FRqt3v5h mJviut/wMKfJCk4OKEwbzn9RgHCr+Gh64vJsvdFyLqJRFJY40Hdo/RGrDM8QqT28YJ9Ns6j4p PgSBig5ZgnxTMzKampXpfhD2xGdE0/hgx+PiAOem/WLWlUp3dzSPCbZMYH8W+FoxW+fR+GQ0h HvPZygVHUyXZxFdgw5arpUr5VGrfHi737BX39ScfSGxKGEPZ4yYW2UKIwpmgfEayIlTHrzwH 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273970 Archived-At: Spencer Baugh writes: Hi Spencer, > If a user has multiple Emacs instances open using one or more of these > features, it's fairly easy for both of the Emacs instances to see a > new project at the same time. In that case, they'll both call > project--write-project-list at the same time, which will clash and run > ask-user-about-lock. This will happen frequently if the user is often > looking at new projects. > > There's no correct answer the user can give to ask-user-about-lock: > either way, one of the Emacs instances will have its project-list-file > update lost. So let's not even bother prompting the user: just do > nothing if project-list-file is currently locked. If you don't care about locking project-list-file, let-bind create-lockfiles to nil while writing project-list-file. Best regards, Michael.