From ea53fe84542d1e96ca83237437c5009f15f5a8d0 Mon Sep 17 00:00:00 2001 From: Eric Dallo Date: Thu, 28 May 2020 15:02:33 -0300 Subject: [PATCH] Fix defvar-local --- doom-modeline-segments.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index ded313f..a4452f0 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1960,7 +1960,7 @@ mouse-3: Fetch notifications" ;; ;; Highlight the mode-line while debugging. -(defvar doom-modeline--debug-cookie nil) +(defvar-local doom-modeline--debug-cookie nil) (defun doom-modeline--debug-visual (&rest _) "Update the face of mode-line for debugging." (mapc (lambda (buffer) @@ -1973,8 +1973,8 @@ mouse-3: Fetch notifications" (defun doom-modeline--normal-visual (&rest _) "Restore the face of mode-line." (mapc (lambda (buffer) - (when doom-modeline--debug-cookie - (with-current-buffer buffer + (with-current-buffer buffer + (when doom-modeline--debug-cookie (face-remap-remove-relative doom-modeline--debug-cookie) (force-mode-line-update)))) (buffer-list)))