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

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

bug#42386: Acknowledgement ([PATCH] Handle symbols in project-kill-buffe


From: Philip K.
Subject: bug#42386: Acknowledgement ([PATCH] Handle symbols in project-kill-buffers-ignores)
Date: Fri, 17 Jul 2020 13:17:17 +0200

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "Philip K." <philip@warpmail.net>
>> Cc: 42386@debbugs.gnu.org
>> Date: Fri, 17 Jul 2020 10:16:59 +0200
>> 
>> I don't see any way around this, except for trying to analyse the
>> symbols string representation or checking the arity if the
>> function. Neither seem like a particularly clean approach.
>
> Dmitry suggested a cons cell, which will allow you to differentiate
> between predicates and major-modes.  Isn't that a way around the
> problem?

That's what I had in mind when I wrote:

> How about this: Instead of symbols, adding a cons-cell:
> 
>     (major-mode . erc-mode)
> 
> prevents erc-buffers from being killed?

So if you're ok with that, I'll try submitting a patch with that
approach.

-- 
        Philip K.





reply via email to

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