From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66993: [PATCH] project.el: avoid asking user about project-list-file lock Date: Thu, 9 Nov 2023 13:05:09 +0200 Message-ID: References: <83sf5g1lko.fsf@gnu.org> <9d460f36-6035-da54-3abc-12171ac8977f@gutov.dev> <83h6lw19zw.fsf@gnu.org> <894f674f-76ea-90af-3acc-73ca6e7caf35@gutov.dev> <834jhv1lfw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20643"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: sbaugh@janestreet.com, 66993@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 12:06:55 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 1r12s9-0005BG-TA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 12:06:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r12rj-0001WU-Bw; Thu, 09 Nov 2023 06:06:27 -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 1r12rg-0001UZ-Qd for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:06:25 -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 1r12rg-000785-B1 for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:06:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r12sI-0004eY-7e for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Nov 2023 11:07: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.169952796517808 (code B ref 66993); Thu, 09 Nov 2023 11:07:02 +0000 Original-Received: (at 66993) by debbugs.gnu.org; 9 Nov 2023 11:06:05 +0000 Original-Received: from localhost ([127.0.0.1]:46863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r12rK-0004cu-23 for submit@debbugs.gnu.org; Thu, 09 Nov 2023 06:06:05 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r12rF-0004cZ-W9 for 66993@debbugs.gnu.org; Thu, 09 Nov 2023 06:06:01 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A540C5C0373; Thu, 9 Nov 2023 06:05:13 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 09 Nov 2023 06:05:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1699527913; x=1699614313; bh=KH+d9CcaXbAlOVzyyZlEDaOLIAY4o9OGKQN GXZuhZ5w=; b=OeGnnXg9GuAiSaJykNBM6a/ItVwUkkNVpjWyNbdV+F11Gb9LSDR hIFGe5BAqsUpPkzrG5ES9rY+l9l4BP6I4yjPeADf95jjPwWet6sGH1F+f5Wh0srI kCBYTOYz73l9XBNdZS2sQs86rgcbwDyQAbRjIxQ7Z7hsCk5F6Ufr3OXYej7njWZ4 tckrg5rLst9VrpPEE1INpY79QOXHDd6pRLtkzUAGxdJROb5csCMuCG/H5jgqq45b wa0JOyF69wWtaNQNhYbOW0jFidfVFNapMupbBs1nMSRYb7rXcXj4Ce2TPMKY5vfA SQVf+LnS6lec7fWSKUHm6SPlcbfHrMnkKpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699527913; x=1699614313; bh=KH+d9CcaXbAlOVzyyZlEDaOLIAY4o9OGKQN GXZuhZ5w=; b=IEkpXcIoucoTI41Fa0oRPmoF+wqQtLBJ7jgj1KN42Dv1kPSyGLa q7e6xXsl0xpxN009MePEcMVJybspeLg8BBgK7tYw/xwMQjyQMz5h+0hIFYppIdHH ET2CE/2ny7yh/FaxhLUT+YdUnhCE0icjuh47etF44PsBOcicEAFm4zFFlDxR9ZhD 2EF4NavnPvY7fk1kbK98F6iYzjbu0iF9XopVI/RG/kDIZe4jMu7vpQS2Zh4idyVy H8GIjhjfFIiJMyzXTzL+xREblohbHJyo6ZrW58ZWjjYHPdE1bSORUNFirPzPOADR ij7RA08yBmuI0eEid64nh4cdMuVHnBS6xSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 06:05:11 -0500 (EST) Content-Language: en-US In-Reply-To: <834jhv1lfw.fsf@gnu.org> 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:274043 Archived-At: On 09/11/2023 08:37, Eli Zaretskii wrote: >> 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. Not resolves. Explains. > 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? Specific, meaning in a file name e.g. suffixed with pid? And what happens after the restart? The list needs to be recovered.