mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Eliminate compiler warnings.
This commit is contained in:
parent
c60dd1279a
commit
81a782b1cb
1 changed files with 15 additions and 12 deletions
|
@ -62,7 +62,6 @@
|
||||||
(require 'projectile)
|
(require 'projectile)
|
||||||
(require 'shrink-path)
|
(require 'shrink-path)
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Variables
|
;; Variables
|
||||||
;;
|
;;
|
||||||
|
@ -91,7 +90,10 @@ Given ~/Projects/FOSS/emacs/lisp/comint.el
|
||||||
"Whether show `all-the-icons' or not (if nil nothing will be showed).
|
"Whether show `all-the-icons' or not (if nil nothing will be showed).
|
||||||
The icons may not be showed correctly on Windows. Disable to make it work.")
|
The icons may not be showed correctly on Windows. Disable to make it work.")
|
||||||
|
|
||||||
;; externs
|
;;
|
||||||
|
;; externals
|
||||||
|
;;
|
||||||
|
|
||||||
(defvar anzu--current-position)
|
(defvar anzu--current-position)
|
||||||
(defvar anzu--overflow-p)
|
(defvar anzu--overflow-p)
|
||||||
(defvar anzu--state)
|
(defvar anzu--state)
|
||||||
|
@ -101,15 +103,8 @@ The icons may not be showed correctly on Windows. Disable to make it work.")
|
||||||
(defvar evil-ex-active-highlights-alist)
|
(defvar evil-ex-active-highlights-alist)
|
||||||
(defvar evil-ex-argument)
|
(defvar evil-ex-argument)
|
||||||
(defvar evil-ex-range)
|
(defvar evil-ex-range)
|
||||||
(defvar evil-mode)
|
(defvar evil-local-mode)
|
||||||
(defvar evil-state)
|
(defvar evil-state)
|
||||||
(defvar evil-emacs-state-tag)
|
|
||||||
(defvar evil-insert-state-tag)
|
|
||||||
(defvar evil-motion-state-tag)
|
|
||||||
(defvar evil-normal-state-tag)
|
|
||||||
(defvar evil-operator-state-tag)
|
|
||||||
(defvar evil-replace-state-tag)
|
|
||||||
(defvar evil-visual-state-tag)
|
|
||||||
(defvar evil-visual-beginning)
|
(defvar evil-visual-beginning)
|
||||||
(defvar evil-visual-end)
|
(defvar evil-visual-end)
|
||||||
(defvar evil-visual-selection)
|
(defvar evil-visual-selection)
|
||||||
|
@ -128,7 +123,15 @@ The icons may not be showed correctly on Windows. Disable to make it work.")
|
||||||
(declare-function aw-window-list 'ace-window)
|
(declare-function aw-window-list 'ace-window)
|
||||||
(declare-function eldoc-in-minibuffer-mode 'eldoc-eval)
|
(declare-function eldoc-in-minibuffer-mode 'eldoc-eval)
|
||||||
(declare-function evil-delimited-arguments 'evil-common)
|
(declare-function evil-delimited-arguments 'evil-common)
|
||||||
|
(declare-function evil-emacs-state-p 'evil-states)
|
||||||
|
(declare-function evil-force-normal-state 'evil-commands)
|
||||||
|
(declare-function evil-insert-state-p 'evil-states)
|
||||||
|
(declare-function evil-motion-state-p 'evil-states)
|
||||||
|
(declare-function evil-normal-state-p 'evil-states)
|
||||||
|
(declare-function evil-operator-state-p 'evil-states)
|
||||||
|
(declare-function evil-replace-state-p 'evil-states)
|
||||||
(declare-function evil-state-property 'evil-common)
|
(declare-function evil-state-property 'evil-common)
|
||||||
|
(declare-function evil-visual-state-p 'evil-states)
|
||||||
(declare-function eyebrowse--get 'eyebrowse)
|
(declare-function eyebrowse--get 'eyebrowse)
|
||||||
(declare-function face-remap-remove-relative 'face-remap)
|
(declare-function face-remap-remove-relative 'face-remap)
|
||||||
(declare-function flycheck-count-errors 'flycheck)
|
(declare-function flycheck-count-errors 'flycheck)
|
||||||
|
@ -867,7 +870,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
|
|
||||||
(defsubst doom-modeline--evil-substitute ()
|
(defsubst doom-modeline--evil-substitute ()
|
||||||
"Show number of matches for evil-ex substitutions and highlights in real time."
|
"Show number of matches for evil-ex substitutions and highlights in real time."
|
||||||
(when (and (bound-and-true-p evil-mode)
|
(when (and (bound-and-true-p evil-local-mode)
|
||||||
(or (assq 'evil-ex-substitute evil-ex-active-highlights-alist)
|
(or (assq 'evil-ex-substitute evil-ex-active-highlights-alist)
|
||||||
(assq 'evil-ex-global-match evil-ex-active-highlights-alist)
|
(assq 'evil-ex-global-match evil-ex-active-highlights-alist)
|
||||||
(assq 'evil-ex-buffer-match evil-ex-active-highlights-alist)))
|
(assq 'evil-ex-buffer-match evil-ex-active-highlights-alist)))
|
||||||
|
@ -1108,7 +1111,7 @@ See `mode-line-percent-position'.")
|
||||||
(cond
|
(cond
|
||||||
(current-input-method
|
(current-input-method
|
||||||
(concat current-input-method-title " "))
|
(concat current-input-method-title " "))
|
||||||
((and (bound-and-true-p evil-mode)
|
((and (bound-and-true-p evil-local-mode)
|
||||||
(bound-and-true-p evil-input-method))
|
(bound-and-true-p evil-input-method))
|
||||||
(concat
|
(concat
|
||||||
(nth 3 (assoc default-input-method input-method-alist))
|
(nth 3 (assoc default-input-method input-method-alist))
|
||||||
|
|
Loading…
Reference in a new issue