|
From: | Dmitry Gutov |
Subject: | bug#42386: Acknowledgement ([PATCH] Handle symbols in project-kill-buffers-ignores) |
Date: | Thu, 16 Jul 2020 21:41:44 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 16.07.2020 18:14, Eli Zaretskii wrote:
Is this logic correct and reliable? A function is a symbol, and there could be symbols that have both a function cell and a variable cell -- how does this cope with that? And why do you require a function not to be a symbol? I'm probably missing something.
There is little possibility of conflict here, al least if we redo the implementation a little (major modes rarely match predicate functions by name, so these kind of conditions could coexist), but I'm worried about the non-obvious semantics.
Do we have existing variables that offer similar functionality?I have used font-lock-global-modes as an example in the past, but it doesn't support free-form predicates or matching by buffer name.
[Prev in Thread] | Current Thread | [Next in Thread] |