From 7a8f3ccee3540a7c146df39ccca6ab472020a3b1 Mon Sep 17 00:00:00 2001 From: Trevor Richards Date: Sat, 30 Jul 2022 07:41:33 -0700 Subject: [PATCH] * mood-line.el: Fixed checks for meow and evil-segments Should no longer get warnings for unbound variables. Also, added a missing comment. --- mood-line.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mood-line.el b/mood-line.el index 0b32857..5717bb4 100644 --- a/mood-line.el +++ b/mood-line.el @@ -337,12 +337,13 @@ The `Face' may be either a face symbol or a property list of key-value pairs (defun mood-line-segment-evil () "Display the current evil-mode state." - (when evil-state + (when (boundp 'evil-state) (let ((mode-cons (alist-get evil-state mood-line-evil-state-alist))) (concat (propertize (car mode-cons) 'face (cdr mode-cons)) " ")))) (defun mood-line-segment-meow () - (when meow--current-state + "Display the current meow-mode state." + (when (boundp 'meow--current-state) (let ((mode-cons (alist-get meow--current-state mood-line-meow-state-alist)))