Subject: bug#41879: 28.0.50; [Patch]: Add project-switch-to-buffer in project.el

From: Andrii Kolomoiets <[email-masked]>
Date: Thu, 18 Jun 2020 14:30:32 +0300

Dmitry Gutov <[email-masked]> writes:

> On 18.06.2020 13:48, Andrii Kolomoiets wrote:
>> Much better!
>> Few more things:
>> - Check if other-buffer is passes the predicate function.  The
>> buffer
>>    from another project must not be the default.
>> - Exclude the current buffer from the buffers list to switch to.
>
> Perhaps a good idea is to follow the example of
> internal-complete-buffer-except (called from read-buffer-to-switch).

Isn't it enough to check `(not (eq (cdr buffer) (current-buffer)))` in
the predicate function?