From 1afe59f7f888fd80e9bbad502d96e5e2ee9feb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 22 Aug 2021 16:36:26 +0100 Subject: [PATCH] Double check completions-group customization variable in Icomplete bug#48545 * lisp/icomplete.el (icomplete--augment): Double check completions-group. --- lisp/icomplete.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 03616f9b6aa..0fa5f367349 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -760,7 +760,8 @@ by `group-function''s second \"transformation\" protocol." (plist-get completion-extra-properties :affixation-function))) (ann-fun (or (completion-metadata-get md 'annotation-function) (plist-get completion-extra-properties :annotation-function))) - (grp-fun (completion-metadata-get md 'group-function)) + (grp-fun (and completions-group + (completion-metadata-get md 'group-function))) (annotated (cond (aff-fun (funcall aff-fun prospects))