GNU bug report logs - #66993
[PATCH] project.el: avoid asking user about project-list-file lock

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Tue, 7 Nov 2023 21:29:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 66993 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Eli Zaretskii <eliz <at> gnu.org>, Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 66993 <at> debbugs.gnu.org
Subject: Re: bug#66993: [PATCH] project.el: avoid asking user about
 project-list-file lock
Date: Wed, 8 Nov 2023 15:26:11 +0200
On 08/11/2023 14:22, Eli Zaretskii wrote:
>> From: Spencer Baugh<sbaugh <at> janestreet.com>
>> Date: Tue, 07 Nov 2023 16:28:04 -0500
>>
>> There are several features which will cause Emacs to frequently call
>> project-current, and therefore call project-remember-project, and
>> therefore sometimes call project--write-project-list whenever a new
>> project is seen.
> Why does project-current immediately writes the list to the file?  Why
> cannot it keep the information in memory and write it only when the
> session ends, or at some random rare opportunity?

It could indeed be written from kill-emacs-hook, or just the next time 
an opportunity presents.

With the latter approach, though, it would be handier if the 
lock-prompter signaled a specific error we could catch to reschedule saving.




This bug report was last modified 1 year and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.