|
From: | Andrii Kolomoiets |
Subject: | bug#41879: 28.0.50; [Patch]: Add project-switch-to-buffer in project.el |
Date: | Thu, 18 Jun 2020 14:30:32 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
Dmitry Gutov <dgutov@yandex.ru> 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?
[Prev in Thread] | Current Thread | [Next in Thread] |