emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Speed up project-kill-buffers


From: Dmitry Gutov
Subject: Re: [PATCH] Speed up project-kill-buffers
Date: Sat, 8 May 2021 20:10:31 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi Stephen,

On 08.05.2021 15:03, Stephen Leake wrote:
There are also projects that do not have a single root; an Emacs elisp
project (which has load-path as roots), any project with dependent
external libraries.

This is not really than different.

The VC backend has load-path in external roots (which can have counterparts in "dependency libraries" in other languages).

When we close such project, though, we usually don't want to kill any of the buffers belonging to external libraries (they might as well be part of some other project, e.g. one that the current depends on).

To support arbitrarily-shaped projects, though, we can introduce a method like 'project-contains-buffer?'. Which you would implement with 'member'. The performance could be okay if your projects are small enough. It doesn't handle non-file-visiting buffers, though.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]