emacs/dired: appease byte-compiler sama

This commit is contained in:
Henrik Lissner 2019-10-22 03:12:45 -04:00
parent 1b3dd6c40d
commit bf46a197a0
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -114,11 +114,11 @@ we have to clean it up ourselves."
;; is considered part of the filename, so we disable icons while we're in
;; wdired-mode.
(when EMACS27+
(defvar-local +wdired-icons-enabled nil)
(defvar +wdired-icons-enabled -1)
(defadvice! +dired-disable-icons-in-wdired-mode-a (&rest _)
:before #'+wdired-before-start-advice
(setq +wdired-icons-enabled (if all-the-icons-dired-mode 1 0))
(setq-local +wdired-icons-enabled (if all-the-icons-dired-mode 1 -1))
(when all-the-icons-dired-mode
(all-the-icons-dired-mode -1)))