From 1a2226b242453f44886943f091f21a82f6be435c Mon Sep 17 00:00:00 2001 From: Pengji Zhang Date: Wed, 17 Oct 2018 11:42:44 -0400 Subject: [PATCH] Stop byte-compiling modeline format functions Otherwise there will be a bunch of `Unused lexical var` warnings if the file is not byte-compiled beforehand. --- doom-modeline.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 41f387d..ffe9c3f 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -286,10 +286,7 @@ active.") (concat "Modeline:\n" (format " %s\n %s" (prin1-to-string lhs) - (prin1-to-string rhs)))) - (unless (bound-and-true-p byte-compile-current-file) - (let (byte-compile-warnings) - (byte-compile sym))))) + (prin1-to-string rhs)))))) (defun doom-modeline (key) "Return a mode-line configuration associated with KEY (a symbol).