branch: externals/hotfuzz
commit 0fde15001d0adc6a31ef59fefba042c72f450184
Author: Axel Forsman <[email protected]>
Commit: Axel Forsman <[email protected]>
Add customization group
In Emacs 28.0, the non-existance of the implied group
`hotfuzz-selectrum` of the `hotfuzz-selectrum-mode` minor mode turned
into an error. This caused byte-compilation to fail with
hotfuzz.el:182:1: Error: defcustom for ‘hotfuzz-selectrum-mode’ fails
to specify containing group
---
hotfuzz.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hotfuzz.el b/hotfuzz.el
index 2ce731483d..30116d1834 100644
--- a/hotfuzz.el
+++ b/hotfuzz.el
@@ -22,6 +22,11 @@
(eval-when-compile (require 'cl-lib))
+(defgroup hotfuzz nil
+ "Fuzzy completion style."
+ :group 'external
+ :link '(url-link :tag "GitHub" "https://github.com/axelf4/hotfuzz"))
+
;; Since we pre-allocate the vectors the common optimization where
;; symmetricity w.r.t. to insertions/deletions means it suffices to
;; allocate MIN(#needle, #haystack) for C/D when only calculating the
@@ -185,6 +190,7 @@ HAYSTACK has to be a match according to `hotfuzz-filter'."
(define-minor-mode hotfuzz-selectrum-mode
"Minor mode that enables hotfuzz in Selectrum menus."
+ :group 'hotfuzz
:global t
(require 'selectrum)
(if hotfuzz-selectrum-mode