From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66993: [PATCH] project.el: avoid asking user about project-list-file lock Date: Thu, 09 Nov 2023 08:37:39 +0200 Message-ID: <834jhv1lfw.fsf@gnu.org> References: <83sf5g1lko.fsf@gnu.org> <9d460f36-6035-da54-3abc-12171ac8977f@gutov.dev> <83h6lw19zw.fsf@gnu.org> <894f674f-76ea-90af-3acc-73ca6e7caf35@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, 66993@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 07:38:46 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 1r0ygg-000654-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 07:38:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0ygL-00026F-Rr; Thu, 09 Nov 2023 01:38:25 -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 1r0ygJ-000260-Tc for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 01:38:23 -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 1r0ygJ-0004wx-JB for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 01:38:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0ygw-0003Qz-Gu for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 01:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Nov 2023 06:39: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.169951191313164 (code B ref 66993); Thu, 09 Nov 2023 06:39:02 +0000 Original-Received: (at 66993) by debbugs.gnu.org; 9 Nov 2023 06:38:33 +0000 Original-Received: from localhost ([127.0.0.1]:46582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0ygS-0003QG-Vs for submit@debbugs.gnu.org; Thu, 09 Nov 2023 01:38:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0ygR-0003Q3-Vu for 66993@debbugs.gnu.org; Thu, 09 Nov 2023 01:38:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0yfj-0004oy-M1; Thu, 09 Nov 2023 01:37:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qJoK+vOSMjdGxYbutkd3VlWwKzJV82EB/i9Fa0toXsY=; b=N2O9MgkRuJlm pbVkULrikw/HvZ4B9sUTAurZAz475qzAkP8TPBj46oxNyKaSeXdfSkMKlHFFMUMzOckgBL0lttkns abiZesLntp6GUE2KzlhCpb4i4syiUSXafFFlzyrJyjv8ZCrEOi9+Fa5NMMNG9+TDBIkX0cwaj1VBP pcJMGfD2HJyWA/PPL1N98XQk3uhf5lUisDfhbLTiUlhL593ailgmSGFwS/kuXDEmThwTGwkNz0F1b Rj7Feh+efxVTgK3q0M4NhK97aLS5Zc2TT0AUjZASjWDlkalcqXYMSSfJZ2HRBwEqDE+U/SSKOkJUu v2R3eDkbDr5hzQ7aa5yswA==; In-Reply-To: <894f674f-76ea-90af-3acc-73ca6e7caf35@gutov.dev> (message from Dmitry Gutov on Wed, 8 Nov 2023 23:04:50 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274030 Archived-At: > Date: Wed, 8 Nov 2023 23:04:50 +0200 > Cc: 66993@debbugs.gnu.org > From: Dmitry Gutov > > On 08/11/2023 18:32, Eli Zaretskii wrote: > > I thought these writes were already just adding projects, not > > clobbering the list. > > The file is re-written in full every time e.g. to remove the previous > mentions of a project that should now be moved to the top. I don't understand how this resolves the concern about clobbering. If each Emacs session just writes its list of projects to the file, without refreshing the list due to additions done by another session, they will still clobber each other's lists, no? This could be avoided if the writer would read the file before rewriting it. Can you tell why the list of projects is saved on a file that is global among all sessions of the same user? Would it make sense to make the file specific to an Emacs process?