bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#42386: [PATCH] Handle symbols in project-kill-buffers-ignores


From: Philip K.
Subject: bug#42386: [PATCH] Handle symbols in project-kill-buffers-ignores
Date: Thu, 16 Jul 2020 20:00:58 +0200

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 16.07.2020 11:15, Philip K. wrote:
>> using project-kill-buffers for the last few weeks I noticed that my ERC
>> buffers get killed when I started my session in a project. This kicks me
>> out of all the channels I have joined, which is not intended.
>> 
>> Fixing this is easy, I just have to ignore ERC buffers:
>> 
>>          (add-to-list 'project-kill-buffers-ignores
>>                       (lambda (buf)
>>                         (with-current-buffer buf
>>                           (derived-mode-p 'erc-mode))))
>
> So there is no way to match the buffers in question using a regexp by name?

Not in this case, because an ERC buffer can have any name (direct
conversations don't start with a "#").

-- 
        Philip K.





reply via email to

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