From 2812a96c40be7c6b22e0c03f209ab90d58eec711 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 29 Apr 2019 11:19:49 +0800 Subject: [PATCH] Minor fix for fancy-narrow-mode. --- doom-modeline-segments.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 9dec7e2..4d0e277 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -51,7 +51,6 @@ (defvar evil-ex-active-highlights-alist) (defvar evil-ex-argument) (defvar evil-ex-range) -(defvar evil-local-mode) (defvar evil-mc-frozen) (defvar evil-state) (defvar evil-visual-beginning) @@ -63,16 +62,15 @@ (defvar flymake--backend-state) (defvar flymake--mode-line-format) (defvar flymake-menu) -(defvar iedit-mode) (defvar iedit-occurrences-overlays) (defvar mc/mode-line) -(defvar minions-mode) (defvar minions-mode-line-lighter) (defvar mu4e-alert-mode-line) (defvar mu4e-alert-modeline-formatter) (defvar nyan-minimum-window-width) -(defvar objed--object) (defvar objed--obj-state) +(defvar objed--object) +(defvar objed-modeline-setup-func) (defvar persp-nil-name) (defvar symbol-overlay-keywords-alist) (defvar symbol-overlay-temp-symbol) @@ -118,6 +116,7 @@ (declare-function evil-state-property 'evil-common) (declare-function evil-visual-state-p 'evil-states) (declare-function eyebrowse--get 'eyebrowse) +(declare-function fancy-narrow-active-p 'fancy-narrow) (declare-function fancy-narrow-to-region 'fancy-narrow) (declare-function fancy-widen 'fancy-narrow) (declare-function flycheck-buffer 'flycheck) @@ -268,7 +267,7 @@ Uses `all-the-icons-material' to fetch the icon." "!" 'doom-modeline-urgent)) ((or (buffer-narrowed-p) - (and (fboundp 'fancy-narrow-active-p) + (and (bound-and-true-p fancy-narrow-mode) (fancy-narrow-active-p))) (doom-modeline-buffer-file-state-icon "vertical_align_center"