|
From: | Dmitry Gutov |
Subject: | bug#41868: [PATCH] Add project-clean-up command |
Date: | Tue, 16 Jun 2020 03:23:00 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 16.06.2020 01:49, Juri Linkov wrote:
+(defcustom project-spare-buffers-regexps + '("\\*Help\\*")Perhaps also call this project-buffer-spare-conditions?I think the suffix ‘-regexps’ is fine. The problem is that the word “spare” has no reference to the related command name ‘project-kill-buffers’. Maybe better would be something like ‘project-kill-buffers-ignore-regexps’ or
"kill or spare", no? But it's not immediately obvious for non-native speakers, sure.
Or something like that. Point is, no tie the name to regexps, for easy extension into having functions in that list as well.For functions it's easy to add a separate variable like ‘project-kill-buffers-ignore-functions’.
I don't see why we wouldn't want to keep it on the same variable. It's both easier to document, and to implement.
[Prev in Thread] | Current Thread | [Next in Thread] |