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:33:29 +0200 Message-ID: <42fe7d0e-024c-3e0d-3bc5-b0e6ec50f260@gutov.dev> 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> <83ttpvyxn0.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="6051"; 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:34: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 1r13JG-0001Le-Ej for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 12:34:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r13Iy-0001HH-Nb; Thu, 09 Nov 2023 06:34:36 -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 1r13Il-0001DM-Qc for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:34:24 -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 1r13Il-0004D6-DM for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:34:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r13JN-0005WV-UE for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 06:35:01 -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:35:01 +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.169952965921177 (code B ref 66993); Thu, 09 Nov 2023 11:35:01 +0000 Original-Received: (at 66993) by debbugs.gnu.org; 9 Nov 2023 11:34:19 +0000 Original-Received: from localhost ([127.0.0.1]:46890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13Ig-0005VV-Oc for submit@debbugs.gnu.org; Thu, 09 Nov 2023 06:34:19 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13Ie-0005VD-Fn for 66993@debbugs.gnu.org; Thu, 09 Nov 2023 06:34:17 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3B2F75C0329; Thu, 9 Nov 2023 06:33:32 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 09 Nov 2023 06:33:32 -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= 1699529612; x=1699616012; bh=EjWHzCNniHaSLcl7WNJ+noD5oodyFWgJTfF alFozTZA=; b=cfu9iaELLWy3khRFO7mC8AEpZ+bD3cul/ND5E23UK1QVlje1qC1 /mXTLn5M0XohZ42astVh+zJyZY5EtbL4mjTnfUfZIr7OO3wO4HmLchbYhpFwAyLQ BMWtAIYN5LCgitLpB2/Y5bGAmnSP5c1aWn6VRSfcJmOkiahVRJ1nWFTmyKZueeKn Vd3pDZAJcsHNoNIVfcABujMS7GqpKfJg009/kVpJbSaSB24rC7+o5dmE+uH2jfKB KoxMY85DOlCzw/efetVGq9G0Ou8NzXpBobMxxzhHcViS+Yoi+tu8NZTJxjRAN0qK ZoqO5N8c8r22cS+2oS5ltTHRI7i4Jla7UYQ== 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= 1699529612; x=1699616012; bh=EjWHzCNniHaSLcl7WNJ+noD5oodyFWgJTfF alFozTZA=; b=sT9r6PB1N5nlYnrnjimEzhc9yDJfxeMp6OdJm3VT/PaE6Gm+3+N zrWo39Q+BSTMd2uz64EDDllvhNN11gUHzNIe90+CdlzIbBwdzSPMzcMFqL/Kh8Pp Cr9mKblMYQoeSC9bUzZUWrN5HaoeZ2I4snm9G8L8aA3R0FLQuUGBRvX+fLetTOTU iIpGDJmNo6QVb2TxtNkAM2E67ztYucck3NbUQd1QGV7HF5lkWYxLJoYpewTkYfm+ wAxoFkkGDSOPJWlberFTmKoq2YUAh9C7rtUazr9mnk47SbKlRJgvagZ6fkiQ9LJs Dm/jR6wZCbgxbKry/G1UvL6Fj/Hbr4AxqVw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgvdekucetufdoteggodetrfdotf 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:33:31 -0500 (EST) Content-Language: en-US In-Reply-To: <83ttpvyxn0.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:274046 Archived-At: On 09/11/2023 13:27, Eli Zaretskii wrote: >> Date: Thu, 9 Nov 2023 13:05:09 +0200 >> Cc: sbaugh@janestreet.com, 66993@debbugs.gnu.org >> From: Dmitry Gutov >> >>> 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? > > For example, yes. > >> And what happens after the restart? The list needs to be recovered. > > Why does it need to be recovered? Isn't it built on-the-fly anyway? > Is this just some kind of optimization? If we didn't need to read it after restart, there would be no point in writing the list to disk. > I guess I don't understand well enough why this file exists and how it > is used? Same reason as for savehist-file.