From 31b94e253a0f3130c086c4e96db3b870a0991b07 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 10 Nov 2018 11:35:47 -0500 Subject: [PATCH] Fix: require subr-x (needed for when-let) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Its absence results in a compile error when using borg-build: In toplevel form: doom-modeline.el:314:1:Warning: Unused lexical argument ‘key’ In doom-modeline-set-modeline: doom-modeline.el:314:50:Warning: ‘(modeline (doom-modeline key))’ is a malformed function doom-modeline.el:322:22:Warning: reference to free variable ‘modeline’ In doom-modeline-set-selected-window: doom-modeline.el:390:49:Warning: ‘(win (frame-selected-window))’ is a malformed function doom-modeline.el:393:41:Warning: reference to free variable ‘win’ In end of data: doom-modeline.el:1249:1:Warning: the function ‘when-let’ is not known to be defined. Which ultimately results in an error disrupting proper startup: Invalid function: (modeline (doom-modeline key)) --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index 8f6eb9f..06521b7 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -61,6 +61,7 @@ (require 'eldoc-eval) (require 'projectile) (require 'shrink-path) +(require 'subr-x) ;; ;; Variables