From aee39851e2827329f955d657a2bdf7d4874e97ae Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Tue, 25 Jul 2023 15:53:23 +0300 Subject: [PATCH] biome-query: show "Group variables: unset" (#2) --- biome-query.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/biome-query.el b/biome-query.el index c74ed0a..61c8888 100644 --- a/biome-query.el +++ b/biome-query.el @@ -231,10 +231,12 @@ KEY is the api key of the variable. VAR-NAMES is the output of (when group (format "Group: %s\n" (propertize group 'face 'transient-value))) - (when group-vars + (when (or group group-vars) (format "Group variables: %s\n" - (mapconcat (lambda (x) (propertize x 'face 'font-lock-variable-name-face)) - group-vars "; "))) + (if group-vars + (mapconcat (lambda (x) (propertize x 'face 'font-lock-variable-name-face)) + group-vars "; ") + (propertize "unset" 'face 'error)))) (when vars (format "Variables: %s\n" (mapconcat #'identity vars "; ")))